mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 02:17:50 +00:00
Remove es6 scaffolding from html test files.
This commit is contained in:
@@ -117,9 +117,6 @@
|
|||||||
QUnit.config.autostart = false;
|
QUnit.config.autostart = false;
|
||||||
|
|
||||||
require(getConfig(), ['underscore', 'backbone'], function(lodash) {
|
require(getConfig(), ['underscore', 'backbone'], function(lodash) {
|
||||||
ui.isStrict || (ui.isStrict = 'default' in lodash);
|
|
||||||
lodash = (lodash['default'] || lodash);
|
|
||||||
|
|
||||||
mixinPrereqs(lodash);
|
mixinPrereqs(lodash);
|
||||||
|
|
||||||
if (ui.isModularize) {
|
if (ui.isModularize) {
|
||||||
|
|||||||
@@ -358,15 +358,9 @@
|
|||||||
|
|
||||||
function loadModulesAndTests() {
|
function loadModulesAndTests() {
|
||||||
require(getConfig(), ['lodash', 'shimmed', 'underscore'], function(lodash, shimmed, underscore) {
|
require(getConfig(), ['lodash', 'shimmed', 'underscore'], function(lodash, shimmed, underscore) {
|
||||||
ui.isStrict || (ui.isStrict = 'default' in lodash);
|
|
||||||
lodash = lodash['default'] || lodash;
|
|
||||||
|
|
||||||
lodashModule = lodash;
|
lodashModule = lodash;
|
||||||
lodashModule.moduleName = 'lodash';
|
lodashModule.moduleName = 'lodash';
|
||||||
|
|
||||||
shimmed = shimmed && (shimmed['default'] || shimmed);
|
|
||||||
underscore = underscore && (underscore['default'] || underscore);
|
|
||||||
|
|
||||||
if (shimmed && shimmed.noConflict) {
|
if (shimmed && shimmed.noConflict) {
|
||||||
shimmedModule = shimmed.noConflict();
|
shimmedModule = shimmed.noConflict();
|
||||||
shimmedModule.moduleName = 'shimmed';
|
shimmedModule.moduleName = 'shimmed';
|
||||||
@@ -380,7 +374,7 @@
|
|||||||
}
|
}
|
||||||
if (ui.isModularize) {
|
if (ui.isModularize) {
|
||||||
require(getConfig(), ['lodash/internal/baseEach'], function(baseEach) {
|
require(getConfig(), ['lodash/internal/baseEach'], function(baseEach) {
|
||||||
lodash._baseEach = baseEach['default'] || baseEach;
|
lodash._baseEach = baseEach;
|
||||||
loadTests();
|
loadTests();
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
@@ -394,7 +388,7 @@
|
|||||||
if (window.requirejs) {
|
if (window.requirejs) {
|
||||||
addBizarroMethods();
|
addBizarroMethods();
|
||||||
require(getConfig(), ['lodash'], function(lodash) {
|
require(getConfig(), ['lodash'], function(lodash) {
|
||||||
lodashBizarro = (lodash['default'] || lodash).noConflict();
|
lodashBizarro = lodash.noConflict();
|
||||||
delete requirejs.s.contexts._;
|
delete requirejs.s.contexts._;
|
||||||
|
|
||||||
removeBizarroMethods();
|
removeBizarroMethods();
|
||||||
|
|||||||
@@ -252,9 +252,6 @@
|
|||||||
QUnit.config.autostart = false;
|
QUnit.config.autostart = false;
|
||||||
|
|
||||||
require(getConfig(), [moduleId], function(lodash) {
|
require(getConfig(), [moduleId], function(lodash) {
|
||||||
ui.isStrict || (ui.isStrict = 'default' in lodash);
|
|
||||||
lodash = (lodash['default'] || lodash);
|
|
||||||
|
|
||||||
if (ui.isModularize) {
|
if (ui.isModularize) {
|
||||||
window._ = lodash;
|
window._ = lodash;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user