diff --git a/test/asset/test-ui.js b/test/asset/test-ui.js index 4097b2ce0..270da2988 100644 --- a/test/asset/test-ui.js +++ b/test/asset/test-ui.js @@ -128,13 +128,13 @@ ui.isForeign = RegExp('^(\\w+:)?//').test(build); // Used to indicate testing a modularized build. - ui.isModularize = /\b(?:amd|commonjs|es6|node|npm|(index|main)\.js)\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]); + ui.isStrict = /\bes6?\b/.test([location.pathname, location.search]); // The Lo-Dash build file path. ui.buildPath = (function() { diff --git a/test/test.js b/test/test.js index 773dce518..929113cdc 100644 --- a/test/test.js +++ b/test/test.js @@ -99,8 +99,8 @@ var ui = root.ui || (root.ui = { 'buildPath': filePath, 'loaderPath': '', - 'isModularize': /\b(?:amd|commonjs|es6|node|npm|(index|main)\.js)\b/.test(filePath), - 'isStrict': /\bes6\b/.test(filePath), + 'isModularize': /\b(?:amd|commonjs|es6?|node|npm|(index|main)\.js)\b/.test(filePath), + 'isStrict': /\bes6?\b/.test(filePath), 'urlParams': {} });