diff --git a/test/asset/test-ui.js b/test/asset/test-ui.js index a1264e6d7..4097b2ce0 100644 --- a/test/asset/test-ui.js +++ b/test/asset/test-ui.js @@ -124,18 +124,18 @@ init(); }); - // Used to indicate that Lo-Dash is in strict mode. - ui.isStrict = /\b(?:lodash-es6|transpiled)\b/.test([location.pathname, location.search]); - // Used to indicate testing a foreign file. ui.isForeign = RegExp('^(\\w+:)?//').test(build); // Used to indicate testing a modularized build. - ui.isModularize = /\b(?:commonjs|(index|main)\.js|lodash-(?:amd|es6|node)|modularize|npm|transpiled)\b/.test([location.pathname, location.search]); + ui.isModularize = /\b(?:amd|commonjs|es6|node|npm|(index|main)\.js)\b/.test([location.pathname, location.search]); // Used to indicate testing in Sauce Labs' automated test cloud. ui.isSauceLabs = location.port == '9001'; + // Used to indicate that Lo-Dash is in strict mode. + ui.isStrict = /\bes6\b/.test([location.pathname, location.search]); + // The Lo-Dash build file path. ui.buildPath = (function() { var result; diff --git a/test/test.js b/test/test.js index 004d7686e..b5e57e55d 100644 --- a/test/test.js +++ b/test/test.js @@ -94,8 +94,8 @@ var ui = root.ui || (root.ui = { 'buildPath': filePath, 'loaderPath': '', - 'isModularize': /\b(?:commonjs|(index|main)\.js|lodash-(?:amd|es6|node)|modularize|npm|transpiled)\b/.test(filePath), - 'isStrict': /\b(?:lodash-es6|transpiled)\b/.test(filePath), + 'isModularize': /\b(?:amd|commonjs|es6|node|npm|(index|main)\.js)\b/.test(filePath), + 'isStrict': /\bes6\b/.test(filePath), 'urlParams': {} });