mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Reset settings between tests
This commit is contained in:
@@ -60,8 +60,8 @@ var persistentSettings = {
|
||||
if (globalSettings === null) {
|
||||
throw new Error("Settings not available");
|
||||
}
|
||||
var current = globalSettings[prop];
|
||||
globalSettings[prop] = value;
|
||||
var current = persistentSettings.get(prop);
|
||||
try {
|
||||
assert.deepEqual(current,value);
|
||||
return when.resolve();
|
||||
@@ -72,6 +72,12 @@ var persistentSettings = {
|
||||
|
||||
available: function() {
|
||||
return (globalSettings !== null);
|
||||
},
|
||||
|
||||
reset: function() {
|
||||
userSettings = null;
|
||||
globalSettings = null;
|
||||
storage = null;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user