ci: Fix tests on postgres (no-changelog)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™ 2023-07-25 00:11:33 +02:00
parent 89f44021b9
commit eeb49e9375
2 changed files with 5 additions and 7 deletions

View file

@ -157,7 +157,7 @@ describe('GET /resolve-password-token', () => {
});
test('should fail if user is not found', async () => {
const token = jwtService.signData({ sub: 'test' });
const token = jwtService.signData({ sub: uuid() });
const response = await testServer.authlessAgent
.get('/resolve-password-token')

View file

@ -82,12 +82,10 @@ describe('POST /credentials', () => {
});
test('should fail with invalid inputs', async () => {
await Promise.all(
INVALID_PAYLOADS.map(async (invalidPayload) => {
const response = await authOwnerAgent.post('/credentials').send(invalidPayload);
expect(response.statusCode === 400 || response.statusCode === 415).toBe(true);
}),
);
for (const invalidPayload of INVALID_PAYLOADS) {
const response = await authOwnerAgent.post('/credentials').send(invalidPayload);
expect(response.statusCode === 400 || response.statusCode === 415).toBe(true);
}
});
test('should fail with missing encryption key', async () => {