X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fapi%2Fserver%2Fno-client.ts;h=d589f51f3e6ef1b6ccd4013fb32f3cf4666bb724;hb=f2eb23cd87cf32b8fe545178143b5f49e06a58da;hp=d0450aba0b4496ea4589b8594831777d1014203f;hpb=2ad9dcda240ee843c5e4a5b98cc94f7b2aab2c89;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/api/server/no-client.ts b/server/tests/api/server/no-client.ts index d0450aba0..d589f51f3 100644 --- a/server/tests/api/server/no-client.ts +++ b/server/tests/api/server/no-client.ts @@ -2,6 +2,7 @@ import 'mocha' import * as request from 'supertest' import { ServerInfo } from '../../../../shared/extra-utils' import { cleanupTests, flushAndRunServer } from '../../../../shared/extra-utils/server/servers' +import { HttpStatusCode } from '../../../../shared/core-utils/miscs/http-error-codes' describe('Start and stop server without web client routes', function () { let server: ServerInfo @@ -16,7 +17,7 @@ describe('Start and stop server without web client routes', function () { const req = request(server.url) .get('/') - return req.expect(404) + return req.expect(HttpStatusCode.NOT_FOUND_404) }) after(async function () {