(adapter: SessionRuntimeAdapter)
| 23 | } |
| 24 | |
| 25 | function 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 | |
| 34 | describe('shared session routes', () => { |
| 35 | it('returns 404 when requesting a missing session by id', async () => { |