Skip to content

Commit

Permalink
Update the db test sections to use a recent time
Browse files Browse the repository at this point in the history
  • Loading branch information
mehallhm committed Nov 19, 2024
1 parent ca98ccc commit a4e7d1c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/database/updater.test.seq.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit a4e7d1c

Please sign in to comment.