diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-12-23 21:10:24 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-12-23 21:10:24 +0000 |
commit | 5838993b5f3e2d861d9dd7c82dfeea71506b9fc2 (patch) | |
tree | caab6621fb79f06a355f802dc885982f746b544d /config/karma.config.js | |
parent | b8d021cb606ac86f41a0ef9dacd133a9677f8414 (diff) | |
download | gitlab-ce-5838993b5f3e2d861d9dd7c82dfeea71506b9fc2.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'config/karma.config.js')
-rw-r--r-- | config/karma.config.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/config/karma.config.js b/config/karma.config.js index 23afc437608..1d65e65ce2a 100644 --- a/config/karma.config.js +++ b/config/karma.config.js @@ -71,13 +71,13 @@ const createContext = (specFiles, regex, suffix) => { if (specFilters.length) { // resolve filters - let filteredSpecFiles = specFilters.map(filter => + let filteredSpecFiles = specFilters.map((filter) => glob .sync(filter, { root: ROOT_PATH, matchBase: true, }) - .filter(path => path.endsWith('spec.js')), + .filter((path) => path.endsWith('spec.js')), ); // flatten @@ -92,14 +92,14 @@ if (specFilters.length) { exit('Your filter did not match any test files.', isError); } - if (!filteredSpecFiles.every(file => SPECS_PATH.test(file))) { + if (!filteredSpecFiles.every((file) => SPECS_PATH.test(file))) { exitError('Test files must be located within /spec/javascripts.'); } - const CE_FILES = filteredSpecFiles.filter(file => !file.startsWith('ee')); + const CE_FILES = filteredSpecFiles.filter((file) => !file.startsWith('ee')); createContext(CE_FILES, /[^e]{2}[\\\/]spec[\\\/]javascripts$/, 'spec/javascripts'); - const EE_FILES = filteredSpecFiles.filter(file => file.startsWith('ee')); + const EE_FILES = filteredSpecFiles.filter((file) => file.startsWith('ee')); createContext(EE_FILES, /ee[\\\/]spec[\\\/]javascripts$/, 'ee/spec/javascripts'); } |