File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 11# Node Test Helper
22
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 .
44
55For 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.
66
77## Adding to node project
88
99To add to your node project test dependencies:
1010
11- npm install node-red-contrib -test-helper --save-dev
11+ npm install node-red-node -test-helper --save-dev
1212
1313Inside your node test code:
1414
1515``` javascript
16- var helper = require (' node-red-contrib -test-helper' );
16+ var helper = require (' node-red-node -test-helper' );
1717```
1818
1919## Testing the helper
@@ -28,7 +28,7 @@ This is an example test for testing the lower-case node in the [Node-RED documen
2828
2929``` javascript
3030var should = require (" should" );
31- var helper = require (" node-red-contrib -test-helper" );
31+ var helper = require (" node-red-node -test-helper" );
3232var lowerNode = require (" ../lower-case.js" );
3333
3434describe (' lower-case Node' , function () {
Original file line number Diff line number Diff line change 11{
22 "name" : " node-red-node-test-helper" ,
3- "version" : " 0.1.1 " ,
3+ "version" : " 0.1.2 " ,
44 "description" : " A test framework for Node-RED nodes" ,
55 "main" : " index.js" ,
66 "scripts" : {
You can’t perform that action at this time.
0 commit comments