Drop a dead expression from the files RPC test

Left over from writing the demo-mode case: a cast statement with no effect, which
eslint flags as no-unused-expressions. It is the one error in an otherwise
warnings-only run, so `eslint .` exits 1 and the Server Tests job fails on lint
before it runs a single test.
This commit is contained in:
Maurice
2026-08-09 13:07:22 +02:00
committed by Maurice
parent dbb0016cac
commit d58f7aa399
@@ -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: 'demo@trek.app' } : { role: 'user', email: 'real@example.test' }) })),