Skip to content

Commit facb233

Browse files
committed
Fix test type check.
- Explicitly check for PositiveEvaluationTest. - Allow fallthrough without checks for PositiveSyntaxTest.
1 parent 0c13469 commit facb233

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test-common.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -439,13 +439,13 @@ function addTest(manifest, test, tests) {
439439
try {
440440
if(isNegativeTest(test)) {
441441
await compareExpectedError(test, err);
442-
} else {
443-
// default is to assume positive and skip isPositiveTest(test) check
442+
} else if(isPositiveTest(test)) {
444443
if(err) {
445444
throw err;
446445
}
447446
await testInfo.compare(test, result);
448447
}
448+
// fallthrough without checks for PositiveSyntaxTest and others
449449

450450
if(options.benchmark) {
451451
// pre-load params to avoid doc loader and parser timing

0 commit comments

Comments
 (0)