add system id to the notification payload for good measure

This commit is contained in:
2025-04-22 11:15:35 -07:00
parent 1cb498b150
commit 95f2e6ec29
4 changed files with 10 additions and 5 deletions

View File

@@ -40,7 +40,8 @@ describe("ETANotificationScheduler", () => {
notificationService = new ETANotificationScheduler(
shuttleRepository,
notificationRepository,
appleNotificationSender
appleNotificationSender,
"1",
);
notificationService.startListeningForUpdates();
});
@@ -127,7 +128,8 @@ describe("ETANotificationScheduler", () => {
notificationService = new ETANotificationScheduler(
shuttleRepository,
notificationRepository,
updatedNotificationSender
updatedNotificationSender,
"1",
);
notificationService.startListeningForUpdates();

View File

@@ -5,7 +5,6 @@ import {
AppleNotificationSender,
NotificationAlertArguments
} from "../../../src/notifications/senders/AppleNotificationSender";
import { ETANotificationScheduler } from "../../../src/notifications/schedulers/ETANotificationScheduler";
jest.mock("http2");
@@ -13,7 +12,7 @@ const sampleKeyBase64 = "LS0tLS1CRUdJTiBQUklWQVRFIEtFWS0tLS0tCk1JR1RBZ0VBTUJNR0J
function mockHttp2Connect(status: number) {
class MockClient extends EventEmitter {
request = jest.fn((headers: any) => {
request = jest.fn((_) => {
const mockRequest: any = new EventEmitter();
mockRequest.setEncoding = jest.fn();
mockRequest.write = jest.fn();