More ES5 reversion for Karma
This commit is contained in:
parent
f65e60767d
commit
78db60c760
|
|
@ -1,8 +1,8 @@
|
||||||
const TEST_REGEXP = /test\..*\.js/;
|
var TEST_REGEXP = /test\..*\.js/;
|
||||||
const allTestFiles = [];
|
var allTestFiles = [];
|
||||||
const extraFiles = ['/base/tests/assertions.js'];
|
var extraFiles = ['/base/tests/assertions.js'];
|
||||||
|
|
||||||
Object.keys(window.__karma__.files).forEach((file) => {
|
Object.keys(window.__karma__.files).forEach(function (file) {
|
||||||
if (TEST_REGEXP.test(file)) {
|
if (TEST_REGEXP.test(file)) {
|
||||||
// TODO: normalize?
|
// TODO: normalize?
|
||||||
allTestFiles.push(file);
|
allTestFiles.push(file);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue