aboutsummaryrefslogblamecommitdiffhomepage
path: root/server/tests/utils/config.js
blob: 0a507a60fc54f204817d45edbe2852d47b0d065c (plain) (tree)























                                                                              
'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