fixes for grunt files tests on Windows

This commit is contained in:
Dave Conway-Jones
2017-03-06 15:28:23 +00:00
parent c6436f47eb
commit 2db65b9d1f
3 changed files with 30 additions and 22 deletions

View File

@@ -128,8 +128,14 @@ describe('nodes/registry/installer', function() {
installer.installModule(resourcesDir).then(function() {
done(new Error("Unexpected success"));
}).otherwise(function(err) {
err.code.should.eql(404);
done();
if (err.hasOwnProperty("code")) {
err.code.should.eql(404);
done();
}
else {
err.message.should.eql("Install failed");
done();
}
});
});
it("succeeds when path is valid node-red module", function(done) {