Improve context storage handling

This commit is contained in:
HirokiUchikawa
2018-06-26 11:43:37 +09:00
parent cce7ac09d0
commit 40ff54f67e
2 changed files with 42 additions and 21 deletions

View File

@@ -263,7 +263,7 @@ describe('context', function() {
Context.init({contextStorage:{_:{module:testPlugin}}});
Context.load().then(function(){
var context = Context.get("1","flow");
var cb = function(){done("An error occurred")}
var cb = function(){}
context.set("foo","bar","_",cb);
context.get("foo","_",cb);
context.keys("_",cb);