X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=shared%2Fextra-utils%2Fserver%2Fclients.ts;h=894fe4911c49ef34528b8e20770a5f84fbc97290;hb=fae6e4da8f516a9d6c3bad9bf6f35811ccacbad8;hp=dc631e82318d3dd034aa5f7486f1314345b47987;hpb=4c1def5fd8e9f483238eb38e221f555e2e6bbf07;p=github%2FChocobozzz%2FPeerTube.git diff --git a/shared/extra-utils/server/clients.ts b/shared/extra-utils/server/clients.ts index dc631e823..894fe4911 100644 --- a/shared/extra-utils/server/clients.ts +++ b/shared/extra-utils/server/clients.ts @@ -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/) }