From 1e7863d1c58dd7880310a2b9341f63d5cd6a99a8 Mon Sep 17 00:00:00 2001 From: f3ath Date: Sat, 2 Mar 2024 13:36:33 -0800 Subject: [PATCH] 0.7.1 --- test/helper.dart | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/test/helper.dart b/test/helper.dart index 89776ad..de91790 100644 --- a/test/helper.dart +++ b/test/helper.dart @@ -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); @@ -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', };