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:
wooferguy 2023-05-17 18:56:07 +12:00
parent 67dd7e30fa
commit 9e3f148273
1 changed files with 1 additions and 1 deletions

View File

@ -854,7 +854,7 @@ describe('inject node', function() {
});
n1.on("call:error", function(err) {
count++;
if (count == 2) {
if (count == 1) {
done();
}
});