mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-18 21:16:47 +00:00
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:
@@ -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' }) })),
|
||||
|
||||
Reference in New Issue
Block a user