From 3c06c95f396b6e911076bc3291d5855ed01b5caa Mon Sep 17 00:00:00 2001 From: "netop://ウィビ" Date: Sun, 26 Apr 2026 20:18:30 -0700 Subject: cleanup and ready for launch --- tests/operations.test.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'tests/operations.test.ts') 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" }, -- cgit v1.2.3