commit 3d75d459b107891ee9ba0d846567567c39efc199
parent 47d2151d14f6786652e4aaecbbf0e317797cec27
Author: finwo <finwo@pm.me>
Date: Sun, 20 Sep 2026 21:18:47 +0200
fix test: login error returns 200 for htmx swap
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/ui.test.js b/test/ui.test.js
@@ -108,7 +108,7 @@ test('signing in through the form sets a session and reveals the nav', async ()
url: '/login',
...form({}, { username: 'admin', password: 'wrong' }),
});
- assert.equal(bad.statusCode, 401);
+ assert.equal(bad.statusCode, 200);
assert.match(bad.body, /Invalid username or password/);
const good = await h.app.inject({