From 63fc0ac8dd5702ca7f38d41fe0ca2ac21b7fbd55 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Sat, 28 Oct 2023 00:26:01 +0200 Subject: Fixed flaky test --- tests/root.spec.js | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'tests/root.spec.js') diff --git a/tests/root.spec.js b/tests/root.spec.js index e422575..968ea5d 100644 --- a/tests/root.spec.js +++ b/tests/root.spec.js @@ -1,18 +1,18 @@ -import { beforeEach, describe, it } from 'vitest'; +import { beforeEach, describe, test } from 'vitest'; import supertest from 'supertest'; import app from '../main.js'; const request = supertest(app); -describe.concurrent('Root handlers tests', function() { - describe.concurrent('When not logged in', function() { - it('GET /', async function() { await request.get('/').expect('Content-Type', /text\/plain/).expect(302, /Redirecting to \/login$/); }); - it('GET /login', async function() { await request.get('/login').expect('Content-Type', /text\/html/).expect(200, /