We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 935e23c commit e0af8f0Copy full SHA for e0af8f0
tests/invalidate_query.test.ts
@@ -0,0 +1,10 @@
1
+import { expect, test } from "vitest";
2
+import { JSONPathJS } from "../src";
3
+
4
+test("Query that does not start with $ should throw an error", () => {
5
+ expect(() => new JSONPathJS("*")).toThrowError();
6
+});
7
8
+test("Query with unclosed brackets should throw an error", () => {
9
+ expect(() => new JSONPathJS("$.store.book[0")).toThrowError();
10
0 commit comments