aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/utils/config.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/utils/config.ts')
-rw-r--r--server/tests/utils/config.ts17
1 files changed, 17 insertions, 0 deletions
diff --git a/server/tests/utils/config.ts b/server/tests/utils/config.ts
new file mode 100644
index 000000000..d09c19c60
--- /dev/null
+++ b/server/tests/utils/config.ts
@@ -0,0 +1,17 @@
1import * as request from 'supertest'
2
3function 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
15export {
16 getConfig
17}