mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 07:47:49 +00:00
Rename ES6 to ES in tests.
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -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': {}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user