mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Invalid JSONata Inject node test passing condition
This test would sometimes run twice, causing the author to increase its catch count to 2 before considering the test complete. However even one pass proves the node is behaving as expected, and it always runs at least once. I have left the conditional statement in so it can be changed in future.
This commit is contained in:
parent
67dd7e30fa
commit
9e3f148273
@ -854,7 +854,7 @@ describe('inject node', function() {
|
|||||||
});
|
});
|
||||||
n1.on("call:error", function(err) {
|
n1.on("call:error", function(err) {
|
||||||
count++;
|
count++;
|
||||||
if (count == 2) {
|
if (count == 1) {
|
||||||
done();
|
done();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user