Update tester to have FILTER_CRATE set to null if undefined.

This commit is contained in:
Guillaume Gomez 2022-02-03 22:43:02 +01:00
parent cfa677666c
commit 17fe3068d2

View File

@ -357,6 +357,8 @@ function runChecks(testFile, loaded, index) {
var testFileContent = readFile(testFile) + 'exports.QUERY = QUERY;exports.EXPECTED = EXPECTED;';
if (testFileContent.indexOf("FILTER_CRATE") !== -1) {
testFileContent += "exports.FILTER_CRATE = FILTER_CRATE;";
} else {
testFileContent += "exports.FILTER_CRATE = null;";
}
var loadedFile = loadContent(testFileContent);