Merge pull request #1834 from node-red-hitachi/add-tests-for-context-admin-api

Add tests for context admin api
This commit is contained in:
Nick O'Leary
2018-07-23 13:29:10 +01:00
committed by GitHub
2 changed files with 207 additions and 0 deletions

View File

@@ -54,7 +54,10 @@ function logStore(name, module) {
function init(_settings) {
settings = _settings;
contexts = {};
stores = {};
storeList = [];
hasConfiguredStore = false;
var seed = settings.functionGlobalContext || {};
contexts['global'] = createContext("global",seed);
stores["_"] = new memory();