mojito-markup-test
Advanced tools
Comparing version
{ | ||
"name": "mojito-markup-test", | ||
"description": "Utility for view markup validation in mojito unit tests.", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"author": "David Gomez <dgomez@yahoo-inc.com>", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
@@ -23,3 +23,2 @@ /* | ||
CORE_YUI_MODULES = ['get', 'features', 'intl-base', 'mojito'], | ||
DEFAULT_LANG = 'en-US', | ||
@@ -51,11 +50,2 @@ DEFAULT_ENV = 'server', | ||
preloadStore = function (cfg) { | ||
if (!store || !cfg.reuse) { | ||
store = rs.createStore(cfg); | ||
store._staticDetails = {}; | ||
store._appY = Y; | ||
store.preload(); | ||
} | ||
}, | ||
configureYUI = function () { | ||
@@ -83,4 +73,16 @@ var modules, | ||
Y.applyConfig({ useSync: false }); | ||
store.Y = Y; | ||
}, | ||
preloadStore = function (cfg) { | ||
if (!store || !cfg.reuse) { | ||
store = rs.createStore(cfg); | ||
store._staticDetails = {}; | ||
store._appY = Y; | ||
store.preload(); | ||
configureYUI(); | ||
} | ||
}, | ||
isMojitDefined = function (env, type) { | ||
@@ -126,4 +128,2 @@ var found = Y.Array.find(store.listAllMojits(env), function (name) { | ||
configureYUI(); | ||
getMojitTypeDetails(env, ctx, type, function (err, instance) { | ||
@@ -130,0 +130,0 @@ |
24263
-0.17%