(r: RunningServer)
| 107 | } |
| 108 | |
| 109 | async function createSession(r: RunningServer): Promise<string> { |
| 110 | const res = await appOf(r).inject({ |
| 111 | method: 'POST', |
| 112 | url: '/api/v1/sessions', |
| 113 | payload: { metadata: { cwd: workspace } }, |
| 114 | }); |
| 115 | const env = envelopeOf<{ id: string }>(res.json()); |
| 116 | if (env.code !== 0 || env.data === null) { |
| 117 | throw new Error(`create session failed: ${JSON.stringify(env)}`); |
| 118 | } |
| 119 | return env.data.id; |
| 120 | } |
| 121 | |
| 122 | describe('POST /api/v1/sessions/{sid}/fs:search (W11.1)', () => { |
| 123 | it('finds a file by fuzzy filename match', async () => { |
no test coverage detected