Skip to content

Commit 51f31b2

Browse files
authored
Properly bind the utils.addTestError func when validating parsed tests (#1339)
1 parent 01923da commit 51f31b2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/data/process-test-directory/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,7 @@ const processTestDirectory = async config => {
736736
};
737737
const testsValidated = testsParsed.map(test =>
738738
validateTest(test, testLookups, {
739-
addTestError: utils.addTestError.bind(null, test.testId),
739+
addTestError: utils.addTestError.bind(utils, test.testId),
740740
})
741741
);
742742

lib/data/process-test-directory/v1.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ const processTestDirectory = async config => {
552552
};
553553
const testsValidated = testsParsed.map(test =>
554554
validateTest(test, testLookups, {
555-
addTestError: utils.addTestError.bind(null, test.testId),
555+
addTestError: utils.addTestError.bind(utils, test.testId),
556556
})
557557
);
558558

0 commit comments

Comments
 (0)