add second test for false condition

This commit is contained in:
2025-02-12 19:52:20 -08:00
parent 8971e3514d
commit e22537d93d

View File

@@ -134,7 +134,24 @@ describe("QueryResolvers", () => {
}); });
it("returns false if the notification isn't scheduled", async () => { 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);
}); });
}); });
}); });