MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / createMockContext

Function createMockContext

apps/cli/src/http/routes/web/sessions.test.ts:25–32  ·  view source on GitHub ↗
(adapter: SessionRuntimeAdapter)

Source from the content-addressed store, hash-verified

23}
24
25function createMockContext(adapter: SessionRuntimeAdapter): HttpRouteContext {
26 return {
27 dbManager: {} as any,
28 sessionAdapter: adapter,
29 pathProvider: {} as any,
30 getVersion: () => '0.0.0-test',
31 }
32}
33
34describe('shared session routes', () => {
35 it('returns 404 when requesting a missing session by id', async () => {

Callers 1

sessions.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected