mirror of https://github.com/Chocobozzz/PeerTube
18 lines
372 B
TypeScript
18 lines
372 B
TypeScript
import * as request from 'supertest'
|
|
|
|
function getClient (url: string) {
|
|
const path = '/api/v1/clients/local'
|
|
|
|
return request(url)
|
|
.get(path)
|
|
.set('Accept', 'application/json')
|
|
.expect(200)
|
|
.expect('Content-Type', /json/)
|
|
}
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
export {
|
|
getClient
|
|
}
|