Add baseEach tests.

This commit is contained in:
John-David Dalton
2014-01-25 02:22:42 -08:00
parent 79afa16a7f
commit 3986dd4c32
2 changed files with 164 additions and 139 deletions

View File

@@ -240,6 +240,12 @@
};
}
function loadTests() {
require(['test'], function() {
QUnit.start();
});
}
function loadModulesAndTests() {
require(getConfig(), ['lodash', 'shimmed', 'underscore'], function(lodash, shimmed, underscore) {
var oldDash = window._;
@@ -259,9 +265,14 @@
if (oldDash || ui.isModularize) {
window._ = lodash;
}
require(['test'], function() {
QUnit.start();
});
if (ui.isModularize) {
require(['lodash/internals/baseEach'], function(baseEach) {
lodash._baseEach = baseEach;
loadTests();
});
} else {
loadTests();
}
});
}
if (window.requirejs) {