mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 07:50:31 +00:00
add second test for false condition
This commit is contained in:
@@ -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);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user