add tests for context admin api

This commit is contained in:
Hiroyasu Nishiyama
2018-07-21 12:00:54 +09:00
parent ab0fc2ecfa
commit 09329e1104
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();