@5minds/node-red-contrib-processcube-tools 1.0.1-feature-7ab4ae-mff3roeh → 1.0.1-feature-61e7c9-mff5coiu

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@5minds/node-red-contrib-processcube-tools",
3
- "version": "1.0.1-feature-7ab4ae-mff3roeh",
3
+ "version": "1.0.1-feature-61e7c9-mff5coiu",
4
4
  "license": "MIT",
5
5
  "description": "Node-RED tools nodes for ProcessCube",
6
6
  "scripts": {
@@ -240,15 +240,13 @@ describe('Email Receiver Node - Unit Tests with Helpers', function() {
240
240
  const mockRED = createMockNodeRED({
241
241
  onHandler: function(event, callback) {
242
242
  if (event === 'input') {
243
- // Store the callback on the node instance
244
243
  this.inputCallback = callback;
245
244
  }
246
245
  },
247
246
  statusHandler: function(status) {
248
- if (status.fill === 'green') {
249
- // ASSERT: Should show connected status
250
- status.text.should.containEql('connected');
251
- done();
247
+ // ASSERT: Check for 'connected' status and then complete the test
248
+ if (status.fill === 'green' && status.text === 'connected') {
249
+ done();
252
250
  }
253
251
  }
254
252
  });