Fix test assertion: use exact status and correct header property

Signed-off-by: benjdlambert <ben@blam.sh>
This commit is contained in:
benjdlambert
2026-05-26 10:55:41 +02:00
parent f2d71d1d48
commit 63eba7b8d4
@@ -188,7 +188,7 @@ describe('createRouter with public entry point', () => {
.send(`type=sign-in&token=${mockCredentials.user.token()}`);
expect(response.status).toBe(200);
expect(response.headers['set-cookie']).toBeDefined();
expect(response.header['set-cookie']).toBeDefined();
expect(response.text.trim()).toBe('this is index.html');
});
@@ -198,7 +198,7 @@ describe('createRouter with public entry point', () => {
.set('Content-Type', 'application/x-www-form-urlencoded')
.send('type=something-else');
expect(response.status).toBeGreaterThanOrEqual(400);
expect(response.status).toBe(500);
});
});