Update UP e2e test following API token V2 release

This commit is contained in:
Convly 2022-09-30 14:17:52 +02:00
parent fa503ef438
commit 47a5516a60

View File

@ -45,9 +45,9 @@ describe('Auth API', () => {
body: {},
});
expect(res.statusCode).toBe(400);
expect(res.body.error.name).toBe('ApplicationError');
expect(res.body.error.message).toBe('You must be authenticated to reset your password');
expect(res.statusCode).toBe(403);
expect(res.body.error.name).toBe('ForbiddenError');
expect(res.body.error.message).toBe('Forbidden');
});
test('Fails on invalid confirmation password', async () => {