Skip to content

Commit 4cb90a0

Browse files
committed
remove installing should, mocha separately in docs
1 parent 2e485ac commit 4cb90a0

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,20 @@ to ensure your node code is correct.
77

88
## Adding to your node project dependencies
99

10-
To add unit tests your node project test dependencies, add this test helper, `mocha` and `should` as follows:
10+
To add unit tests your node project test dependencies, add this test helper as follows:
1111

12-
npm install mocha should node-red-node-test-helper --save-dev
12+
npm install node-red-node-test-helper --save-dev
1313

14-
This will add the those modules to your `package.json` file as a development dependency. [Mocha](https://mochajs.org/) is a unit test framework for Javascript. [Should](https://shouldjs.github.io/) is an assertion library used in our example unit tests. For more information on these frameworks, see their associated documentation. Depending on your testing needs, other dev dependencies may be added.
14+
This will add this modules to your `package.json` file as a development dependency.
1515

16-
Your project.json file should contain something like the following:
16+
[Mocha](https://mochajs.org/) is a unit test framework for Javascript. [Should](https://shouldjs.github.io/) is an assertion library used in our example unit tests which will also be added to your porject. For more information on these frameworks, see their associated documentation. Depending on your testing needs, you may need to add additional dev dependencies.
17+
18+
Your `project.json` file should now contain something like the following:
1719

1820
```json
1921
...
2022
"devDependencies": {
21-
"mocha": "^3.4.2",
22-
"node-red-node-test-helper": "^0.1.3",
23-
"should": "^8.4.0"
23+
"node-red-node-test-helper": "^0.1.4"
2424
}
2525
...
2626
```
@@ -122,7 +122,7 @@ Producing the following output (for example):
122122

123123
## Additional Examples
124124

125-
For additional examples, see the `.js` files supplied in the `test/examples` folder and the Node-RED core node test code at `test/nodes` in [the Node-RED repository](https://github.com/node-red/node-red/tree/master/test/nodes).
125+
For additional test examples, see the `.js` files supplied in the `test/examples` folder and the Node-RED core node test code at `test/nodes` in [the Node-RED repository](https://github.com/node-red/node-red/tree/master/test/nodes).
126126

127127
## API
128128

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "node-red-node-test-helper",
3-
"version": "0.1.3",
3+
"version": "0.1.4",
44
"description": "A test framework for Node-RED nodes",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)