diff --git a/test/underscore.html b/test/underscore.html
index 953a8567b..445d72872 100644
--- a/test/underscore.html
+++ b/test/underscore.html
@@ -114,9 +114,11 @@
}
// only excuse in non-Underscore builds
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.Collections.where;
- delete QUnit.config.excused.Functions.partial;
delete QUnit.config.excused.Utility['_.escape'];
delete QUnit.config.excused.Utility['_.unescape'];
}
@@ -146,7 +148,7 @@
basePath = ('//' + location.host + location.pathname.replace(reBasename, '')).replace(/\btest\/$/, ''),
modulePath = ui.buildPath.replace(/\.js$/, ''),
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],
uid = +new Date;