Skip to content

Commit

Permalink
a bit of refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
ddrechse committed Oct 13, 2023
1 parent 4d6766c commit d91d6b7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -428,14 +428,14 @@ global.it_exclude_dbs = excluded => {
}
};

var testExclusionList = [];
let testExclusionList = [];
try {
// Fetch test exclusion list
testExclusionList = require('./testExclusionList.json');
console.log("testExclusionList.json Found")
console.log(`Using test exclusion list with ${testExclusionList.length} entries`);
} catch(error) {
if(error.code === "MODULE_NOT_FOUND") {
// Even though it says require, it's not. Don't fail
if(error.code !== 'MODULE_NOT_FOUND') {
throw error;
}
}

Expand Down

0 comments on commit d91d6b7

Please sign in to comment.