(query = '')
| 68 | } |
| 69 | |
| 70 | async function getMap(query = ''): Promise<any> { |
| 71 | const res = await request(`/api/map${query}`); |
| 72 | expect(res.type).toBe('application/json; charset=utf-8'); |
| 73 | expect(res.status).toBe(200); |
| 74 | return JSON.parse(res.body); |
| 75 | } |
| 76 | |
| 77 | function write(root: string, rel: string, body: string): void { |
| 78 | const full = path.join(root, rel); |
no test coverage detected