This commit is contained in:
Yaroslav Halchenko
2024-06-18 09:30:22 -04:00
committed by GitHub
38 changed files with 62 additions and 62 deletions

View File

@@ -195,7 +195,7 @@ describe('nodes/registry/installer', function() {
done();
}).catch(done);
});
it("rejects when non-existant path is provided", function(done) {
it("rejects when non-existent path is provided", function(done) {
this.timeout(20000);
var resourcesDir = path.resolve(path.join(__dirname,"resources","local","TestNodeModule","node_modules","NonExistant"));
installer.installModule(resourcesDir).then(function() {

View File

@@ -188,7 +188,7 @@ describe("red/nodes/registry/registry",function() {
moduleList["test-module"].nodes.should.have.a.property("test-name-2");
});
it('doesnt add node set types if node set has an error', function() {
it('does not add node set types if node set has an error', function() {
typeRegistry.init(settings,null);
typeRegistry.getNodeList().should.have.lengthOf(0);
typeRegistry.getModuleList().should.eql({});
@@ -204,7 +204,7 @@ describe("red/nodes/registry/registry",function() {
should.not.exist(typeRegistry.getTypeId("test-c"));
});
it('doesnt add node set if type already exists', function() {
it('does not add node set if type already exists', function() {
typeRegistry.init(settings,null);
typeRegistry.getNodeList().should.have.lengthOf(0);
typeRegistry.getModuleList().should.eql({});
@@ -329,7 +329,7 @@ describe("red/nodes/registry/registry",function() {
typeRegistry.removeModule("test-module/unknown");
}).should.throw("Unrecognised module: test-module/unknown");
});
it('throws error for unavaiable settings', function() {
it('throws error for unavailable settings', function() {
var s = stubSettings({},false,{});
typeRegistry.init(s,null);
/*jshint immed: false */