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; }