From 3b90cc95548f0e6d9fb3092632755ad82a0121c3 Mon Sep 17 00:00:00 2001 From: Dilip Kola Date: Wed, 22 May 2024 13:18:52 +0530 Subject: [PATCH] chore: add json path tests --- test/scenarios/paths/data.ts | 1 + test/scenarios/paths/json_path.jt | 1 + 2 files changed, 2 insertions(+) diff --git a/test/scenarios/paths/data.ts b/test/scenarios/paths/data.ts index e617a34..961bbc0 100644 --- a/test/scenarios/paths/data.ts +++ b/test/scenarios/paths/data.ts @@ -114,6 +114,7 @@ export const data: Scenario[] = [ b: 3, }, ], + [2, 4, 6], ], }, { diff --git a/test/scenarios/paths/json_path.jt b/test/scenarios/paths/json_path.jt index 55f9c01..2749f9a 100644 --- a/test/scenarios/paths/json_path.jt +++ b/test/scenarios/paths/json_path.jt @@ -2,4 +2,5 @@ ~j $.foo, ~j $.items[*], ~j $.items[?(@.a>1)], + ~j $.items.(@.a + @.b) ] \ No newline at end of file