1
0
Fork 0
peertube/server/tests/utils/clients.js

25 lines
487 B
JavaScript
Raw Normal View History

'use strict'
const request = require('supertest')
const clientsUtils = {
getClient: getClient
}
// ---------------------- Export functions --------------------
function getClient (url, end) {
2016-10-10 15:33:40 -04:00
const path = '/api/v1/clients/local'
request(url)
.get(path)
.set('Accept', 'application/json')
.expect(200)
.expect('Content-Type', /json/)
.end(end)
}
// ---------------------------------------------------------------------------
module.exports = clientsUtils