diff options
Diffstat (limited to 'tests/format.test.ts')
| -rw-r--r-- | tests/format.test.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/format.test.ts b/tests/format.test.ts index ae5d40c..e0b9f1b 100644 --- a/tests/format.test.ts +++ b/tests/format.test.ts @@ -10,11 +10,12 @@ import { expect, test } from "vitest"; import { format } from "../source/library/graphql/format.ts"; -/*** TESTS -------------------------------------------- ***/ +/*** PROGRAM ------------------------------------------ ***/ test("format pretty-prints a valid query", () => { const input = "query Foo{viewer{id name}}"; const expected = "query Foo {\n viewer {\n id\n name\n }\n}"; + expect(format(input)).toEqual(expected); }); |