diff --git a/test/resolvers/QueryResolverTests.test.ts b/test/resolvers/QueryResolverTests.test.ts index f75d436..bb53d5b 100644 --- a/test/resolvers/QueryResolverTests.test.ts +++ b/test/resolvers/QueryResolverTests.test.ts @@ -134,7 +134,24 @@ describe("QueryResolvers", () => { }); it("returns false if the notification isn't scheduled", async () => { + // Act + const response = await holder.testServer.executeOperation({ + query, + variables: { + input: { + shuttleId: "1", + stopId: "1", + deviceId: "1", + }, + } + }, { + contextValue: context, + }); + // Assert + assert(response.body.kind === "single"); + expect(response.body.singleResult.errors).toBeUndefined(); + expect(response.body.singleResult.data?.isNotificationScheduled).toBe(false); }); }); });