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

25 lines
469 B
JavaScript
Raw Normal View History

2017-03-10 05:32:39 -05:00
'use strict'
const request = require('supertest')
const configsUtils = {
getConfig
}
// ---------------------- Export functions --------------------
function getConfig (url, end) {
const path = '/api/v1/config'
request(url)
.get(path)
.set('Accept', 'application/json')
.expect(200)
.expect('Content-Type', /json/)
.end(end)
}
// ---------------------------------------------------------------------------
module.exports = configsUtils