mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Add debug for eventEmitSpy
Debugging a travis-only build failure
This commit is contained in:
parent
882b593ba4
commit
d6c5f9b57f
@ -151,7 +151,7 @@ describe('NodeRegistry', function() {
|
||||
list[0].should.have.property("enabled",true);
|
||||
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[1].should.be.equal(__dirname+"/resources/NestedDirectoryNode/NestedNode/icons");
|
||||
@ -161,6 +161,7 @@ describe('NodeRegistry', function() {
|
||||
|
||||
done();
|
||||
}).catch(function(e) {
|
||||
console.log(eventEmitSpy);
|
||||
done(e);
|
||||
}).finally(function() {
|
||||
eventEmitSpy.restore();
|
||||
|
Loading…
Reference in New Issue
Block a user