aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/utils/server/clients.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/utils/server/clients.ts')
-rw-r--r--server/tests/utils/server/clients.ts19
1 files changed, 0 insertions, 19 deletions
diff --git a/server/tests/utils/server/clients.ts b/server/tests/utils/server/clients.ts
deleted file mode 100644
index 273aac747..000000000
--- a/server/tests/utils/server/clients.ts
+++ /dev/null
@@ -1,19 +0,0 @@
1import * as request from 'supertest'
2import * as urlUtil from 'url'
3
4function getClient (url: string) {
5 const path = '/api/v1/oauth-clients/local'
6
7 return request(url)
8 .get(path)
9 .set('Host', urlUtil.parse(url).host)
10 .set('Accept', 'application/json')
11 .expect(200)
12 .expect('Content-Type', /json/)
13}
14
15// ---------------------------------------------------------------------------
16
17export {
18 getClient
19}