]>
Commit | Line | Data |
---|---|---|
0e1dc3e7 C |
1 | import * as request from 'supertest' |
2 | ||
3 | function getConfig (url: string) { | |
4 | const path = '/api/v1/config' | |
5 | ||
6 | return request(url) | |
7 | .get(path) | |
8 | .set('Accept', 'application/json') | |
9 | .expect(200) | |
10 | .expect('Content-Type', /json/) | |
11 | } | |
12 | ||
13 | // --------------------------------------------------------------------------- | |
14 | ||
15 | export { | |
16 | getConfig | |
17 | } |