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