]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - shared/extra-utils/server/clients.ts
Try to speed up server tests
[github/Chocobozzz/PeerTube.git] / shared / extra-utils / server / clients.ts
index dc631e82318d3dd034aa5f7486f1314345b47987..894fe4911c49ef34528b8e20770a5f84fbc97290 100644 (file)
@@ -1,5 +1,6 @@
 import * as request from 'supertest'
 import { URL } from 'url'
+import { HttpStatusCode } from '../../../shared/core-utils/miscs/http-error-codes'
 
 function getClient (url: string) {
   const path = '/api/v1/oauth-clients/local'
@@ -8,7 +9,7 @@ function getClient (url: string) {
           .get(path)
           .set('Host', new URL(url).host)
           .set('Accept', 'application/json')
-          .expect(200)
+          .expect(HttpStatusCode.OK_200)
           .expect('Content-Type', /json/)
 }