From 2d53be0267acc49cda46707b885096193a1f4e9c Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Mon, 7 Dec 2020 14:32:36 +0100 Subject: replace numbers with typed http status codes (#3409) --- shared/extra-utils/server/clients.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'shared/extra-utils/server/clients.ts') 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/) } -- cgit v1.2.3