mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00: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:
		@@ -854,7 +854,7 @@ describe('inject node', function() {
 | 
			
		||||
            });
 | 
			
		||||
            n1.on("call:error", function(err) {
 | 
			
		||||
                count++;
 | 
			
		||||
                if (count == 2) {
 | 
			
		||||
                if (count == 1) {
 | 
			
		||||
                    done();
 | 
			
		||||
                }
 | 
			
		||||
            });
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user