aboutsummaryrefslogblamecommitdiffhomepage
path: root/server/tests/utils/clients.ts
blob: a8c5b51c5ce51aed41a6fbcbe1e69f3b7bf8cee5 (plain) (tree)
1
2
3
4


                                    
                                            












                                                                              
import * as request from 'supertest'

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

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

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

export {
  getClient
}