From a4e7d1cd1e21f1007cf245dee07ecd5cb54b9ff2 Mon Sep 17 00:00:00 2001 From: mehallhm Date: Mon, 18 Nov 2024 20:35:28 -0500 Subject: [PATCH] Update the db test sections to use a recent time --- tests/database/updater.test.seq.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/database/updater.test.seq.ts b/tests/database/updater.test.seq.ts index 2224c69f..12bfcea7 100644 --- a/tests/database/updater.test.seq.ts +++ b/tests/database/updater.test.seq.ts @@ -48,7 +48,7 @@ const defaultClassProps = { prettyUrl: "pretty", desc: "a class", url: "url", - lastUpdateTime: 20, + lastUpdateTime: Date.now(), maxCredits: 4, minCredits: 0, coreqs: EMPTY_REQ, @@ -717,6 +717,9 @@ describe("Updater", () => { const fundies1SectionsUpdated = await prisma.section.findMany({ where: { classHash: Keys.getClassHash(FUNDIES_ONE) }, }); + + console.log("AAAAAAAAAAAAAA", fundies1Sections); + expect(fundies1SectionsUpdated.length).toBe(2); // new fundies 1 section const fundies1Section1 = fundies1SectionsUpdated.find( (section) => section.crn === FUNDIES_ONE_S1.crn,