PeerTube/server/tests/utils/clients.ts

18 lines
378 B
TypeScript
Raw Normal View History

2017-09-04 14:21:47 -05:00
import * as request from 'supertest'
function getClient (url: string) {
2017-09-07 10:58:09 -05:00
const path = '/api/v1/oauth-clients/local'
2017-09-04 14:21:47 -05:00
return request(url)
.get(path)
.set('Accept', 'application/json')
.expect(200)
.expect('Content-Type', /json/)
}
// ---------------------------------------------------------------------------
export {
getClient
}