From caf279d3a016b5b9302c37a3e184124adbbac15a Mon Sep 17 00:00:00 2001 From: Javier Bullrich Date: Tue, 5 Mar 2024 15:51:57 +0100 Subject: [PATCH] fixed tests not working --- src/cron.test.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/cron.test.ts b/src/cron.test.ts index cb4dfd4..afefec5 100644 --- a/src/cron.test.ts +++ b/src/cron.test.ts @@ -6,20 +6,20 @@ describe("RFC Listing test", () => { test( "Should not return any remark with future date", async () => { - const { ongoing, completed } = await getAllRFCRemarks(new Date()); + const { ongoing, finished } = await getAllRFCRemarks(new Date()); expect(ongoing).toHaveLength(0); - expect(completed).toHaveLength(0); + expect(finished).toHaveLength(0); }, TIMEOUT, ); - test.only( + test( "Should return completed projects in the past", async () => { // It feels wrong to call 2000 an 'old date' const oldDate = new Date("01/01/2000"); - const { completed } = await getAllRFCRemarks(oldDate); - expect(completed.length).toBeGreaterThan(0); + const { finished } = await getAllRFCRemarks(oldDate); + expect(finished.length).toBeGreaterThan(0); }, TIMEOUT, );