Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

Drop a dead expression from the files RPC test

Mauriced58f7aa39956
diff --git a/server/tests/unit/files/files.rpc.test.ts b/server/tests/unit/files/files.rpc.test.ts
index b61553f70..2f335b5c3 100644
--- a/server/tests/unit/files/files.rpc.test.ts
+++ b/server/tests/unit/files/files.rpc.test.ts
@@ -207,7 +207,6 @@ describe('FilesRpc writes', () => {
try {
const f = build();
// The demo guard resolves the uploader's email; user 9 is the demo account.
- (f.files as unknown as { getFileById: unknown });
const db = {
canAccessTrip: vi.fn(() => ({ id: 1, user_id: 42 })),
prepare: vi.fn(() => ({ get: (id: number) => (id === 9 ? { role: 'user', email: '[email protected]' } : { role: 'user', email: '[email protected]' }) })),