Skip to content

Commit 9fd02ef

Browse files
authored
refactor
Signed-off-by: Manuel <[email protected]>
1 parent 4d6766c commit 9fd02ef

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec/helper.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -432,10 +432,10 @@ var testExclusionList = [];
432432
try {
433433
// Fetch test exclusion list
434434
testExclusionList = require('./testExclusionList.json');
435-
console.log("testExclusionList.json Found")
435+
console.log(`Using test exclusion list with ${testExclusionList.length} entries`);
436436
} catch(error) {
437-
if(error.code === "MODULE_NOT_FOUND") {
438-
// Even though it says require, it's not. Don't fail
437+
if(error.code !== 'MODULE_NOT_FOUND') {
438+
throw error;
439439
}
440440
}
441441

0 commit comments

Comments
 (0)