update server context to only include the notification repository

This commit is contained in:
2025-03-27 10:42:43 -07:00
parent bda46d6808
commit 3761f43909
7 changed files with 32 additions and 22 deletions

View File

@@ -5,6 +5,7 @@ import { UnoptimizedInMemoryShuttleRepository } from "../../src/repositories/Uno
import { beforeEach } from "@jest/globals";
import { ServerContext } from "../../src/ServerContext";
import { ETANotificationScheduler } from "../../src/notifications/schedulers/ETANotificationScheduler";
import { InMemoryNotificationRepository } from "../../src/repositories/InMemoryNotificationRepository";
function setUpTestServer() {
@@ -26,7 +27,7 @@ export function setupTestServerContext() {
beforeEach(() => {
context.shuttleRepository = new UnoptimizedInMemoryShuttleRepository();
context.notificationService = new ETANotificationScheduler(context.repository);
context.notificationRepository = new InMemoryNotificationRepository();
});
return context as ServerContext;