mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Fix up promises in tests, remove package-lock
This commit is contained in:
parent
38a1291c5b
commit
954226da0d
12027
package-lock.json
generated
12027
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
4
packages/node_modules/@node-red/nodes/core/logic/15-change.js
generated
vendored
4
packages/node_modules/@node-red/nodes/core/logic/15-change.js
generated
vendored
@ -166,10 +166,10 @@ module.exports = function(RED) {
|
||||
try {
|
||||
fromRE = new RegExp(fromRE, "g");
|
||||
} catch (e) {
|
||||
return Promise.reject(new Error(RED._("change.errors.invalid-from",{error:e.message})));
|
||||
throw new Error(RED._("change.errors.invalid-from",{error:e.message}));
|
||||
}
|
||||
} else {
|
||||
return Promise.reject(new Error(RED._("change.errors.invalid-from",{error:"unsupported type: "+(typeof fromValue)})));
|
||||
throw new Error(RED._("change.errors.invalid-from",{error:"unsupported type: "+(typeof fromValue)}));
|
||||
}
|
||||
return {
|
||||
fromType,
|
||||
|
@ -673,7 +673,7 @@ describe('localfilesystem',function() {
|
||||
|
||||
it('should enumerate context keys in the cache',function() {
|
||||
var globalData = {foo:"bar"};
|
||||
fs.outputFile(path.join(resourcesDir,defaultContextBase,"global","global.json"), JSON.stringify(globalData,null,4), "utf8").then(function(){
|
||||
return fs.outputFile(path.join(resourcesDir,defaultContextBase,"global","global.json"), JSON.stringify(globalData,null,4), "utf8").then(function(){
|
||||
context = LocalFileSystem({dir: resourcesDir, cache: true, flushInterval: 2});
|
||||
return context.open()
|
||||
}).then(function(){
|
||||
|
Loading…
Reference in New Issue
Block a user