1
0
Fork 0
peertube/server/tests/utils/clients.ts
2017-09-07 17:58:09 +02:00

17 lines
378 B
TypeScript

import * as request from 'supertest'
function getClient (url: string) {
const path = '/api/v1/oauth-clients/local'
return request(url)
.get(path)
.set('Accept', 'application/json')
.expect(200)
.expect('Content-Type', /json/)
}
// ---------------------------------------------------------------------------
export {
getClient
}