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