]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - server/tests/utils/clients.ts
Client: handle multiple file resolutions
[github/Chocobozzz/PeerTube.git] / server / tests / utils / clients.ts
CommitLineData
0e1dc3e7
C
1import * as request from 'supertest'
2
3function getClient (url: string) {
8df87ce7 4 const path = '/api/v1/oauth-clients/local'
0e1dc3e7
C
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 getClient
17}