Commit 6b8f1a1e authored by Lukas Eipert's avatar Lukas Eipert

remove `instanceof Array` test

parent 7f2244ee
...@@ -71,13 +71,12 @@ beforeEach(() => { ...@@ -71,13 +71,12 @@ beforeEach(() => {
const axiosDefaultAdapter = getDefaultAdapter(); const axiosDefaultAdapter = getDefaultAdapter();
let testFiles = process.env.TEST_FILES; let testFiles = process.env.TEST_FILES || [];
if (testFiles instanceof Array && testFiles.length > 0) { if (testFiles.length > 0) {
console.log(`Running only tests: ${testFiles}`);
testFiles = testFiles.map(path => path.replace(/^spec\/javascripts\//, '').replace(/\.js$/, '')); testFiles = testFiles.map(path => path.replace(/^spec\/javascripts\//, '').replace(/\.js$/, ''));
console.log(`Running only tests matching: ${testFiles}`);
} else { } else {
console.log('Running all tests'); console.log('Running all tests');
testFiles = [];
} }
// render all of our tests // render all of our tests
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment