MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / baseInput

Function baseInput

services/notifications/src/__tests__/dispatch-push.test.ts:51–64  ·  view source on GitHub ↗
(over: Partial<DispatchPushInput> = {})

Source from the content-addressed store, hash-verified

49 },
50 }),
51 }),
52 insert: () => ({
53 values: () => ({ onConflictDoUpdate: async () => undefined }),
54 }),
55 delete: () => ({
56 where: async () => {
57 state.deleteCalls = (state.deleteCalls ?? 0) + 1;
58 const staleTokens = new Set(state.staleTokensToDelete ?? []);
59 state.tokens = state.tokens.filter(row => !staleTokens.has(row.token));
60 },
61 }),
62 };
63 vi.spyOn(dbClient, 'getWorkerDb').mockReturnValue(
64 fakeDb as unknown as ReturnType<typeof dbClient.getWorkerDb>
65 );
66}
67

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected