From d28ca4eda75c1fa2bfa741896c10b180af0c98b5 Mon Sep 17 00:00:00 2001 From: jdalton Date: Thu, 22 Jan 2015 23:37:10 -0800 Subject: [PATCH] Rename ES6 to ES in tests. --- test/asset/test-ui.js | 4 ++-- test/test.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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': {} });