diff options
| author | netop://ウィビ <paul@webb.page> | 2026-04-26 20:18:30 -0700 |
|---|---|---|
| committer | netop://ウィビ <paul@webb.page> | 2026-04-26 20:18:30 -0700 |
| commit | 3c06c95f396b6e911076bc3291d5855ed01b5caa (patch) | |
| tree | 17cd218339c52fbeee93d931303b04a3ff294f8b /tests/operations.test.ts | |
| parent | f059d97ab7f6d74d61139ac698cb871be7cb632e (diff) | |
| download | graphiql-3c06c95f396b6e911076bc3291d5855ed01b5caa.tar.gz graphiql-3c06c95f396b6e911076bc3291d5855ed01b5caa.zip | |
cleanup and ready for launch
Diffstat (limited to 'tests/operations.test.ts')
| -rw-r--r-- | tests/operations.test.ts | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/operations.test.ts b/tests/operations.test.ts index 14fe768..6acca31 100644 --- a/tests/operations.test.ts +++ b/tests/operations.test.ts @@ -8,9 +8,12 @@ import { expect, test } from "vitest"; /*** UTILITY ------------------------------------------ ***/ -import { deriveTitle, parseOperations } from "../source/library/graphql/operations.ts"; +import { + deriveTitle, + parseOperations +} from "../source/library/graphql/operations.ts"; -/*** TESTS -------------------------------------------- ***/ +/*** PROGRAM ------------------------------------------ ***/ test("parseOperations returns empty for blank query", () => { expect(parseOperations("")).toEqual([]); @@ -37,6 +40,7 @@ test("parseOperations captures multiple operations", () => { mutation Bar { b } subscription Baz { c } `); + expect(ops).toEqual([ { name: "Foo", type: "query" }, { name: "Bar", type: "mutation" }, |