From 5e0cc56a2ff99242f3b23bb967dd4c29c7f6718b Mon Sep 17 00:00:00 2001 From: DoctoDre Date: Fri, 10 Jul 2026 18:30:01 +0200 Subject: [PATCH] fix(jury-voting): update routes.test.ts import to match apiRouter refactoring --- dhive/Jury-Voting/server/__tests__/routes.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dhive/Jury-Voting/server/__tests__/routes.test.ts b/dhive/Jury-Voting/server/__tests__/routes.test.ts index 3be869d..b4daeb5 100644 --- a/dhive/Jury-Voting/server/__tests__/routes.test.ts +++ b/dhive/Jury-Voting/server/__tests__/routes.test.ts @@ -2,7 +2,7 @@ import { describe, it, expect, beforeEach, afterAll } from 'vitest'; import express from 'express'; import fs from 'fs'; import path from 'path'; -import { registerRoutes } from '../routes.js'; +import { apiRouter } from '../routes.js'; const DATA_DIR = path.join(process.cwd(), 'server', 'data'); const SESSION_FILE = path.join(DATA_DIR, 'session.json'); @@ -12,7 +12,7 @@ const BACKUP_FILE = path.join(DATA_DIR, 'session.json.bak'); function createApp() { const app = express(); app.use(express.json()); - registerRoutes(app); + app.use(apiRouter); return app; }