Skip to content

Commit

Permalink
0.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
f3ath committed Mar 2, 2024
1 parent 407ad09 commit 1e7863d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions test/helper.dart
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ void runTestsInDirectory(String dirName, {JsonPathParser? parser}) {
);
});
}
if ([result, results, paths, pointers, invalid]
.every((v) => v == null)) {
if ((result ?? results ?? paths ?? pointers ?? invalid) == null) {
throw ArgumentError('No expectations found');
}
}, skip: skip);
Expand All @@ -83,12 +82,12 @@ void runTestsInDirectory(String dirName, {JsonPathParser? parser}) {

const _knownKeys = {
'document',
'invalid_selector',
'name',
'paths',
'pointers',
'selector',
'skip',
'result',
'results',
'invalid_selector',
'selector',
'skip',
};

0 comments on commit 1e7863d

Please sign in to comment.