Skip to content

Commit

Permalink
support extend type and @extends directive syntax in tests (#169)
Browse files Browse the repository at this point in the history
  • Loading branch information
dariuszkuc committed Aug 12, 2022
1 parent fe3478f commit 9a1e93f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tests/key.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ describe("@key single", () => {

const { sdl } = serviceSDLQuery.data._service;
const normalizedSDL = stripIgnoredCharacters(sdl);
expect(normalizedSDL).toContain("type User@key(fields:\"email\")");
expect(normalizedSDL).toMatch(/type User(@extends)?@key\(fields:"email"\)/);
});

test("resolves single field @key on User", async () => {
Expand Down

0 comments on commit 9a1e93f

Please sign in to comment.