diff --git a/test/asset/test-ui.js b/test/asset/test-ui.js index e8882dcb7..24f087a48 100644 --- a/test/asset/test-ui.js +++ b/test/asset/test-ui.js @@ -154,13 +154,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|es|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 lodash is in strict mode. - ui.isStrict = /\bes6?\b/.test([location.pathname, location.search]); + ui.isStrict = /\bes\b/.test([location.pathname, location.search]); ui.urlParams = { 'build': build, 'loader': loader }; ui.timing = { 'loadEventEnd': 0 }; diff --git a/test/test.js b/test/test.js index 438fb53b3..7ece53081 100644 --- a/test/test.js +++ b/test/test.js @@ -131,8 +131,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|es|node|npm|(index|main)\.js)\b/.test(filePath), + 'isStrict': /\bes\b/.test(filePath), 'urlParams': {} }); @@ -8165,7 +8165,7 @@ QUnit.test('should return `false` if `Buffer` is not defined', function(assert) { assert.expect(1); - if (Buffer && lodashBizarro) { + if (!isStrict && Buffer && lodashBizarro) { assert.strictEqual(lodashBizarro.isBuffer(new Buffer(2)), false); } else {