aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/utils/config.ts
blob: d09c19c6019f726570de9b44ff7fc20641b47d32 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import * as request from 'supertest'

function getConfig (url: string) {
  const path = '/api/v1/config'

  return request(url)
          .get(path)
          .set('Accept', 'application/json')
          .expect(200)
          .expect('Content-Type', /json/)
}

// ---------------------------------------------------------------------------

export {
  getConfig
}