Skip to content

Commit d91d6b7

Browse files
committed
a bit of refactoring
1 parent 4d6766c commit d91d6b7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spec/helper.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -428,14 +428,14 @@ global.it_exclude_dbs = excluded => {
428428
}
429429
};
430430

431-
var testExclusionList = [];
431+
let 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)