From 242bc5a2843f4f755134fbf60ed1d7810627b48e Mon Sep 17 00:00:00 2001 From: iamsherlocked1891 Date: Mon, 25 Nov 2024 00:59:50 +0100 Subject: [PATCH] fix test for training information --- .../components/training/__tests__/TrainingInformation.spec.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/webapp/src/components/training/__tests__/TrainingInformation.spec.ts b/webapp/src/components/training/__tests__/TrainingInformation.spec.ts index 9b3371b39..339bf8f82 100644 --- a/webapp/src/components/training/__tests__/TrainingInformation.spec.ts +++ b/webapp/src/components/training/__tests__/TrainingInformation.spec.ts @@ -25,6 +25,5 @@ it("shows messages", async () => { }, }); - const listItems = wrapper.findAll("#mapHeader li"); - expect(listItems.length === 0 || listItems.length === 3).toBe(true); + expect(wrapper.findAll("#mapHeader li")).toHaveLength(0); });