1 import * as request from 'supertest'
2 import * as urlUtil from 'url'
4 function getClient (url: string) {
5 const path = '/api/v1/oauth-clients/local'
9 .set('Host', urlUtil.parse(url).host)
10 .set('Accept', 'application/json')
12 .expect('Content-Type', /json/)
15 // ---------------------------------------------------------------------------