From 63f0eea70c8683d482df0866457f61421001fc7e Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sat, 15 Feb 2014 18:29:01 -0800 Subject: [PATCH] Fix AMD test fails for Underscore builds. [ci skip] --- test/underscore.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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;