mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 07:50:31 +00:00
add logic to send notification based on a provided threshold
This commit is contained in:
@@ -2,7 +2,7 @@ import { describe, expect, it } from "@jest/globals";
|
||||
import { generateMockSystems } from "../testHelpers/mockDataGenerators";
|
||||
import { setupTestServerContext, setupTestServerHolder } from "../testHelpers/apolloTestServerHelpers";
|
||||
import assert = require("node:assert");
|
||||
import { ScheduledNotificationData } from "../../src/notifications/schedulers/ETANotificationScheduler";
|
||||
import { NotificationSchedulingArguments } from "../../src/notifications/schedulers/ETANotificationScheduler";
|
||||
import { addMockShuttleToRepository, addMockStopToRepository } from "../testHelpers/repositorySetupHelpers";
|
||||
|
||||
// See Apollo documentation for integration test guide
|
||||
@@ -108,7 +108,7 @@ describe("QueryResolvers", () => {
|
||||
const shuttle = await addMockShuttleToRepository(context.repository, "1");
|
||||
const stop = await addMockStopToRepository(context.repository, "1")
|
||||
|
||||
const notification: ScheduledNotificationData = {
|
||||
const notification: NotificationSchedulingArguments = {
|
||||
shuttleId: shuttle.id,
|
||||
stopId: stop.id,
|
||||
deviceId: "1",
|
||||
|
||||
Reference in New Issue
Block a user