mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Fix loader test to expect line numbers in load errors
This commit is contained in:
parent
0643f149b7
commit
3e021b3a75
@ -514,7 +514,7 @@ describe("red/nodes/registry/loader",function() {
|
|||||||
node.enabled.should.be.true();
|
node.enabled.should.be.true();
|
||||||
nodes.registerType.called.should.be.false();
|
nodes.registerType.called.should.be.false();
|
||||||
node.should.have.property('err');
|
node.should.have.property('err');
|
||||||
node.err.message.should.eql("fail to require");
|
node.err.toString().should.eql("Error: fail to require (line:1)");
|
||||||
|
|
||||||
done();
|
done();
|
||||||
}).otherwise(function(err) {
|
}).otherwise(function(err) {
|
||||||
|
Loading…
Reference in New Issue
Block a user