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:
@@ -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