diff --git a/.github/workflows/test.js.yml b/.github/workflows/test.yml similarity index 100% rename from .github/workflows/test.js.yml rename to .github/workflows/test.yml diff --git a/README.md b/README.md index 68bf914..bcb9e94 100644 --- a/README.md +++ b/README.md @@ -67,3 +67,35 @@ Changes can be followed [here](/CHANGELOG.md). ## Examples Import into Node-RED instance via Node-RED -> Import -> Examples. + + +# Development + +## Setup environment + +``` +npm install --save-dev +``` + +### Format / Linter / Tests + +``` +# Check linter +npm run lint + +# Run all tests incl. coverage check +npm run coverage + +# Run subset of tests +npm run test -- -g "" + +# Node-RED package verification +npm run node-red-dev-validate +``` + +### Update dependencies to latest versions + +``` +# Show outdated dependencies +npm outdated +``` diff --git a/package.json b/package.json index 5a673ae..c131283 100644 --- a/package.json +++ b/package.json @@ -28,21 +28,21 @@ "node": ">=8" }, "dependencies": { - "uuid": ">=10.0" + "uuid": "13.0.0" }, "devDependencies": { - "eslint": "^8.57.0", - "eslint-config-google": "^0.14.0", - "eslint-plugin-html": "^8.1.1", - "eslint-plugin-import": "^2.30.0", - "eslint-plugin-n": "^17.10.2", - "eslint-plugin-promise": "^7.1.0", - "mocha": "^10.7.3", - "mocha-suppress-logs": "^0.5.1", - "node-red": "^4.0.2", - "node-red-dev": "^0.1.6", - "node-red-node-test-helper": "^0.3.4", - "nyc": "^17.0.0" + "eslint": "8.57.1", + "eslint-config-google": "0.14.0", + "eslint-plugin-html": "8.1.3", + "eslint-plugin-import": "2.32.0", + "eslint-plugin-n": "17.23.1", + "eslint-plugin-promise": "7.2.1", + "mocha": "11.7.4", + "mocha-suppress-logs": "0.6.0", + "node-red": "4.1.1", + "node-red-dev": "0.1.6", + "node-red-node-test-helper": "0.3.5", + "nyc": "17.1.0" }, "eslintConfig": { "env": { diff --git a/test/persistent_value_spec.js b/test/persistent_value_spec.js index 09e0e71..4268051 100644 --- a/test/persistent_value_spec.js +++ b/test/persistent_value_spec.js @@ -672,8 +672,8 @@ describe('persistent value node', function() { }); v.receive({payload: simulatedValue}); v.status.should.be.calledWithMatch({ - fill: 'red', shape: 'dot', - text: `${simulatedValue} [str,global,file]`, + fill: 'green', shape: 'dot', + text: `${simulatedValue} [string,global,file]`, }); }); }); @@ -716,8 +716,9 @@ describe('persistent value node', function() { done(err); } }); + v.receive({payload: pureJsonObject}); - v.error.callCount.should.be(0); + v.error.should.have.callCount(0); }); });