1 import * as request from 'supertest'
2 import { URL } from 'url'
3 import { HttpStatusCode } from '../../../shared/core-utils/miscs/http-error-codes'
5 function getClient (url: string) {
6 const path = '/api/v1/oauth-clients/local'
10 .set('Host', new URL(url).host)
11 .set('Accept', 'application/json')
12 .expect(HttpStatusCode.OK_200)
13 .expect('Content-Type', /json/)
16 // ---------------------------------------------------------------------------