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
1 changed files with 1 additions and 1 deletions

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) {