1
0
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:
Nick O'Leary 2017-01-30 09:58:43 +00:00
parent 0643f149b7
commit 3e021b3a75
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -514,7 +514,7 @@ describe("red/nodes/registry/loader",function() {
node.enabled.should.be.true();
nodes.registerType.called.should.be.false();
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();
}).otherwise(function(err) {