]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - server/tests/utils/config.js
Server: add video language attribute
[github/Chocobozzz/PeerTube.git] / server / tests / utils / config.js
CommitLineData
e22528ac
C
1'use strict'
2
3const request = require('supertest')
4
5const configsUtils = {
6 getConfig
7}
8
9// ---------------------- Export functions --------------------
10
11function getConfig (url, end) {
12 const path = '/api/v1/config'
13
14 request(url)
15 .get(path)
16 .set('Accept', 'application/json')
17 .expect(200)
18 .expect('Content-Type', /json/)
19 .end(end)
20}
21
22// ---------------------------------------------------------------------------
23
24module.exports = configsUtils