test: fix e2e test error codes

As these were changed with the openapi decorator the test need to reflect this.

Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
Philip Molares 2022-02-19 20:47:28 +01:00 committed by David Mehren
parent 89aac9d4b6
commit cae55e0baa
4 changed files with 8 additions and 8 deletions

View file

@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
* SPDX-FileCopyrightText: 2022 The HedgeDoc developers (see AUTHORS file)
*
* SPDX-License-Identifier: AGPL-3.0-only
*/
@ -56,7 +56,7 @@ describe('Register and Login', () => {
expect(profile.body.displayName).toEqual(DISPLAYNAME);
// logout again
await session.delete('/api/private/auth/logout').expect(200);
await session.delete('/api/private/auth/logout').expect(204);
// not allowed to request profile now
await session.get('/api/private/me').expect(401);