Commit 27e2903 1 parent 432db9c commit 27e2903 Copy full SHA for 27e2903
File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
# Node Test Helper
2
2
3
- This project pulls out the node helper module from the Node-RED core so that it can used for node contributors .
3
+ This project pulls out the node helper module from the Node-RED core so that it can used for node nodeutors .
4
4
5
5
For examples on how to use this helper, see the Node-RED core node test code and some node .js files supplied in the ` test/examples ` folder.
6
6
7
7
## Adding to node project
8
8
9
9
To add to your node project test dependencies:
10
10
11
- npm install node-red-contrib -test-helper --save-dev
11
+ npm install node-red-node -test-helper --save-dev
12
12
13
13
Inside your node test code:
14
14
15
15
``` javascript
16
- var helper = require (' node-red-contrib -test-helper' );
16
+ var helper = require (' node-red-node -test-helper' );
17
17
```
18
18
19
19
## Testing the helper
@@ -28,7 +28,7 @@ This is an example test for testing the lower-case node in the [Node-RED documen
28
28
29
29
``` javascript
30
30
var should = require (" should" );
31
- var helper = require (" node-red-contrib -test-helper" );
31
+ var helper = require (" node-red-node -test-helper" );
32
32
var lowerNode = require (" ../lower-case.js" );
33
33
34
34
describe (' lower-case Node' , function () {
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " node-red-node-test-helper" ,
3
- "version" : " 0.1.1 " ,
3
+ "version" : " 0.1.2 " ,
4
4
"description" : " A test framework for Node-RED nodes" ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
You can’t perform that action at this time.
0 commit comments