mojito-markup-test
Advanced tools
Comparing version 0.0.7 to 0.0.9
{ | ||
"name": "mojito-markup-test", | ||
"description": "Utility for view markup validation in mojito unit tests.", | ||
"version": "0.0.7", | ||
"version": "0.0.9", | ||
"author": "David Gomez <dgomez@yahoo-inc.com>", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
@@ -51,6 +51,8 @@ /* | ||
preloadStore = function (cfg) { | ||
store = rs.createStore(cfg); | ||
store._staticDetails = {}; | ||
store._appY = Y; | ||
store.preload(); | ||
if (!store || !cfg.reuse) { | ||
store = rs.createStore(cfg); | ||
store._staticDetails = {}; | ||
store._appY = Y; | ||
store.preload(); | ||
} | ||
}, | ||
@@ -90,8 +92,9 @@ | ||
getMojitTypeDetails = function (env, ctx, type, callback) { | ||
var mojitType; | ||
try { | ||
var mojitType = store.getMojitTypeDetails(env, ctx, type); | ||
callback(null, mojitType); | ||
mojitType = store.getMojitTypeDetails(env, ctx, type); | ||
} catch (e) { | ||
callback(e); | ||
return callback(e); | ||
} | ||
callback(null, mojitType); | ||
}, | ||
@@ -111,3 +114,4 @@ | ||
context: ctx, | ||
appConfig: appConfig | ||
appConfig: appConfig, | ||
reuse: spec.reuseStore | ||
}); | ||
@@ -114,0 +118,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24304
452