mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Fix 22 typos found by codespell
Here are typos with their counts and introduced fix:
1 autmatically ==> automatically
1 commited ==> committed
1 currenlty ==> currently
1 dependecies ==> dependencies
1 referrenced ==> referenced
1 signleton ==> singleton
1 somwhere ==> somewhere
1 specied ==> specified
1 specifiy ==> specify
1 statment ==> statement
1 successfuly ==> successfully
1 unavaiable ==> unavailable
2 ellapsed ==> elapsed
3 arrray ==> array
3 compatability ==> compatibility
3 defintion ==> definition
4 compability ==> compatibility
4 mesage ==> message
4 notifiction ==> notification
5 re-use ==> reuse
6 doesnt ==> does not
6 non-existant ==> non-existent
This commit is contained in:
@@ -499,7 +499,7 @@ describe("api/editor/comms", function() {
|
||||
}
|
||||
});
|
||||
});
|
||||
it('rejects connections for non-existant token',function(done) {
|
||||
it('rejects connections for non-existent token',function(done) {
|
||||
var ws = new WebSocket(url);
|
||||
var received = 0;
|
||||
ws.on('open', function() {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -158,7 +158,7 @@ describe('red/runtime/nodes/credentials', function() {
|
||||
settings: encryptionDisabledSettings,
|
||||
nodes: { getType: () => function(){} }
|
||||
});
|
||||
var defintion = {
|
||||
var definition = {
|
||||
user1:{type:"text"},
|
||||
password1:{type:"password"},
|
||||
user2:{type:"text"},
|
||||
@@ -167,9 +167,9 @@ describe('red/runtime/nodes/credentials', function() {
|
||||
password3:{type:"password"}
|
||||
|
||||
};
|
||||
credentials.register("test",defintion);
|
||||
credentials.register("test",definition);
|
||||
var def = credentials.getDefinition("test");
|
||||
defintion.should.eql(def);
|
||||
definition.should.eql(def);
|
||||
|
||||
credentials.load({"node":{user1:"abc",password1:"123",user2:"def",password2:"456",user3:"ghi",password3:"789"}}).then(function() {
|
||||
var node = {id:"node",type:"test",credentials:{
|
||||
|
||||
@@ -37,7 +37,7 @@ describe("storage/localfilesystem/projects/ssh", function() {
|
||||
|
||||
beforeEach(function(done) {
|
||||
oldHOME = process.env.HOME;
|
||||
process.env.HOME = "/tmp/doesnt/exist";
|
||||
process.env.HOME = "/tmp/does not/exist";
|
||||
fs.remove(userDir,function(err) {
|
||||
fs.mkdir(userDir,done);
|
||||
});
|
||||
|
||||
@@ -637,12 +637,12 @@ describe("@node-red/util/util", function() {
|
||||
var result = util.evaluateJSONataExpression(expr,{});
|
||||
result.should.eql('2013-11-18T19:55:00+08:00');
|
||||
});
|
||||
it('handles non-existant flow context variable', function() {
|
||||
it('handles non-existent flow context variable', function() {
|
||||
var expr = util.prepareJSONataExpression('$flowContext("nonExistant")',{context:function() { return {flow:{get: function(key) { return {'foo':'bar'}[key]}}}}});
|
||||
var result = util.evaluateJSONataExpression(expr,{payload:"hello"});
|
||||
should.not.exist(result);
|
||||
});
|
||||
it('handles non-existant global context variable', function() {
|
||||
it('handles non-existent global context variable', function() {
|
||||
var expr = util.prepareJSONataExpression('$globalContext("nonExistant")',{context:function() { return {global:{get: function(key) { return {'foo':'bar'}[key]}}}}});
|
||||
var result = util.evaluateJSONataExpression(expr,{payload:"hello"});
|
||||
should.not.exist(result);
|
||||
|
||||
Reference in New Issue
Block a user