(requestPath: string)
| 84 | } |
| 85 | |
| 86 | async function getStatusAndJson(requestPath: string): Promise<{ status: number; body: any }> { |
| 87 | const res = await request(requestPath); |
| 88 | expect(res.headers['content-type']).toBe('application/json; charset=utf-8'); |
| 89 | return { status: res.status, body: JSON.parse(res.body) }; |
| 90 | } |
| 91 | |
| 92 | /** Find a symbol in the fixture by name, through the API itself. */ |
| 93 | async function idOf(name: string, kind?: string): Promise<string> { |
no test coverage detected