mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Add debug for eventEmitSpy
Debugging a travis-only build failure
This commit is contained in:
		| @@ -151,7 +151,7 @@ describe('NodeRegistry', function() { | |||||||
|             list[0].should.have.property("enabled",true); |             list[0].should.have.property("enabled",true); | ||||||
|             list[0].should.not.have.property("err"); |             list[0].should.not.have.property("err"); | ||||||
|              |              | ||||||
|             eventEmitSpy.calledTwice.should.be.true; |             eventEmitSpy.callCount.should.equal(2); | ||||||
|              |              | ||||||
|             eventEmitSpy.firstCall.args[0].should.be.equal("node-icon-dir"); |             eventEmitSpy.firstCall.args[0].should.be.equal("node-icon-dir"); | ||||||
|             eventEmitSpy.firstCall.args[1].should.be.equal(__dirname+"/resources/NestedDirectoryNode/NestedNode/icons"); |             eventEmitSpy.firstCall.args[1].should.be.equal(__dirname+"/resources/NestedDirectoryNode/NestedNode/icons"); | ||||||
| @@ -161,6 +161,7 @@ describe('NodeRegistry', function() { | |||||||
|              |              | ||||||
|             done(); |             done(); | ||||||
|         }).catch(function(e) { |         }).catch(function(e) { | ||||||
|  |             console.log(eventEmitSpy); | ||||||
|             done(e); |             done(e); | ||||||
|         }).finally(function() { |         }).finally(function() { | ||||||
|             eventEmitSpy.restore(); |             eventEmitSpy.restore(); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user