@5minds/node-red-contrib-processcube-tools 1.0.1-feature-61e7c9-mff5coiu → 1.0.1-feature-48c9c8-mff7tax3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@5minds/node-red-contrib-processcube-tools",
|
|
3
|
-
"version": "1.0.1-feature-
|
|
3
|
+
"version": "1.0.1-feature-48c9c8-mff7tax3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Node-RED tools nodes for ProcessCube",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"lint": "prettier --write --config ./.prettierrc.json \"**/*.{html,js}\""
|
|
8
|
-
"test:unit": "mocha test/unit/**/*.test.js --timeout 10000",
|
|
9
|
-
"test:integration": "mocha test/integration/**/*.test.js --timeout 10000",
|
|
10
|
-
"test": "npm run test:unit && npm run test:integration",
|
|
11
|
-
"test:debug": "mocha test/unit/**/*.test.js test/integration/**/*.test.js --timeout 0 --reporter spec"
|
|
7
|
+
"lint": "prettier --write --config ./.prettierrc.json \"**/*.{html,js}\""
|
|
12
8
|
},
|
|
13
9
|
"authors": [
|
|
14
10
|
{
|
|
@@ -3,7 +3,6 @@ const helper = require('node-red-node-test-helper');
|
|
|
3
3
|
const {
|
|
4
4
|
createMockImap,
|
|
5
5
|
createMockMailparser,
|
|
6
|
-
createMockNodeRED,
|
|
7
6
|
setupModuleMocks,
|
|
8
7
|
testConfigs,
|
|
9
8
|
testFlows,
|
|
@@ -83,24 +82,6 @@ describe('Email Receiver Node - Integration Tests with Helpers', function() {
|
|
|
83
82
|
});
|
|
84
83
|
});
|
|
85
84
|
|
|
86
|
-
it('should load with string folders configuration', function(done) {
|
|
87
|
-
// ARRANGE: Use string folders config from helpers
|
|
88
|
-
const flow = [testConfigs.stringFolders];
|
|
89
|
-
|
|
90
|
-
// ACT: Load the node
|
|
91
|
-
helper.load(emailReceiverNode, flow, function() {
|
|
92
|
-
try {
|
|
93
|
-
// ASSERT: Verify the node loaded with string folders
|
|
94
|
-
const n1 = helper.getNode(testConfigs.stringFolders.id);
|
|
95
|
-
should.exist(n1);
|
|
96
|
-
n1.should.have.property('name', testConfigs.stringFolders.name);
|
|
97
|
-
done();
|
|
98
|
-
} catch (err) {
|
|
99
|
-
done(err);
|
|
100
|
-
}
|
|
101
|
-
});
|
|
102
|
-
});
|
|
103
|
-
|
|
104
85
|
it('should load with array folders configuration', function(done) {
|
|
105
86
|
// ARRANGE: Use array folders config from helpers
|
|
106
87
|
const flow = [testConfigs.arrayFolders];
|