aboutsummaryrefslogblamecommitdiffhomepage
path: root/server/tests/utils/clients.ts
blob: 22676bb381a3aac2ab01ac89641b52f145d98d14 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
















                                                                              
import * as request from 'supertest'

function getClient (url: string) {
  const path = '/api/v1/clients/local'

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

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

export {
  getClient
}