mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 02:47:50 +00:00
Fix AMD test fails for Underscore builds. [ci skip]
This commit is contained in:
@@ -114,9 +114,11 @@
|
|||||||
}
|
}
|
||||||
// only excuse in non-Underscore builds
|
// only excuse in non-Underscore builds
|
||||||
if (/\bunderscore\b/i.test(ui.buildPath)) {
|
if (/\bunderscore\b/i.test(ui.buildPath)) {
|
||||||
|
if (!ui.isModularize) {
|
||||||
|
delete QUnit.config.excused.Functions.partial;
|
||||||
|
}
|
||||||
delete QUnit.config.excused.Chaining;
|
delete QUnit.config.excused.Chaining;
|
||||||
delete QUnit.config.excused.Collections.where;
|
delete QUnit.config.excused.Collections.where;
|
||||||
delete QUnit.config.excused.Functions.partial;
|
|
||||||
delete QUnit.config.excused.Utility['_.escape'];
|
delete QUnit.config.excused.Utility['_.escape'];
|
||||||
delete QUnit.config.excused.Utility['_.unescape'];
|
delete QUnit.config.excused.Utility['_.unescape'];
|
||||||
}
|
}
|
||||||
@@ -146,7 +148,7 @@
|
|||||||
basePath = ('//' + location.host + location.pathname.replace(reBasename, '')).replace(/\btest\/$/, ''),
|
basePath = ('//' + location.host + location.pathname.replace(reBasename, '')).replace(/\btest\/$/, ''),
|
||||||
modulePath = ui.buildPath.replace(/\.js$/, ''),
|
modulePath = ui.buildPath.replace(/\.js$/, ''),
|
||||||
locationPath = modulePath.replace(reBasename, '').replace(/^\/|\/$/g, ''),
|
locationPath = modulePath.replace(reBasename, '').replace(/^\/|\/$/g, ''),
|
||||||
moduleId = /\bunderscore\b/.test(ui.buildPath) ? 'underscore' : 'lodash',
|
moduleId = /\bunderscore\b/i.test(ui.buildPath) ? 'underscore' : 'lodash',
|
||||||
moduleMain = modulePath.match(reBasename)[0],
|
moduleMain = modulePath.match(reBasename)[0],
|
||||||
uid = +new Date;
|
uid = +new Date;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user