Skip to content

Commit

Permalink
fixed tests not working
Browse files Browse the repository at this point in the history
  • Loading branch information
Bullrich committed Mar 5, 2024
1 parent 5bb3a9f commit caf279d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/cron.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
);
Expand Down

0 comments on commit caf279d

Please sign in to comment.