From c5d2d7ca77a502ea607d2db5ecdec972bc76bc69 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Tue, 3 Jan 2023 23:51:00 +0100 Subject: Fixed fixtures and testing --- tests/root.spec.js | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) (limited to 'tests') diff --git a/tests/root.spec.js b/tests/root.spec.js index ffceda5..308d35c 100644 --- a/tests/root.spec.js +++ b/tests/root.spec.js @@ -5,14 +5,14 @@ import app from "../main.js"; const request = supertest(app); -describe.concurrent("Root handlers tests", async function() { - describe.concurrent("When not logged in", async function() { - it("/", async function() { request.get("/").expect("Content-Type", /text\/plain/).expect(302, /Redirecting to \/login$/); }); - it("/login", async function() { request.get("/login").expect("Content-Type", /text\/html/).expect(200, /