From 0ec9edc07dbf5a9b69833b6dab590aa71e2d3744 Mon Sep 17 00:00:00 2001 From: Philip Molares Date: Sun, 8 Jan 2023 16:09:51 +0100 Subject: [PATCH] test(backend): change registration disabled error code Signed-off-by: Philip Molares --- backend/test/private-api/auth.e2e-spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/test/private-api/auth.e2e-spec.ts b/backend/test/private-api/auth.e2e-spec.ts index 7d9f9529b..5021a2c83 100644 --- a/backend/test/private-api/auth.e2e-spec.ts +++ b/backend/test/private-api/auth.e2e-spec.ts @@ -1,5 +1,5 @@ /* - * SPDX-FileCopyrightText: 2022 The HedgeDoc developers (see AUTHORS file) + * SPDX-FileCopyrightText: 2023 The HedgeDoc developers (see AUTHORS file) * * SPDX-License-Identifier: AGPL-3.0-only */ @@ -92,7 +92,7 @@ describe('Auth', () => { .post('/api/private/auth/local') .set('Content-Type', 'application/json') .send(JSON.stringify(registrationDto)) - .expect(400); + .expect(403); testSetup.configService.get('authConfig').local.enableRegister = true; }); });