diff --git a/scrapers/classes/parsersxe/tests/bannerv9Parser.test.ts b/scrapers/classes/parsersxe/tests/bannerv9Parser.test.ts index 5e7f45ea..273e0fe6 100644 --- a/scrapers/classes/parsersxe/tests/bannerv9Parser.test.ts +++ b/scrapers/classes/parsersxe/tests/bannerv9Parser.test.ts @@ -38,18 +38,21 @@ describe("getAllTermInfos", () => { it("serializes the term list", async () => { expect(await bannerv9.getAllTermInfos()).toEqual([ { + active: true, host: "neu.edu", subCollege: "NEU", termId: "3", text: "Fall 2022 Semester", }, { + active: true, host: "neu.edu", subCollege: "LAW", termId: "2", text: "Summer 2022 Semester", }, { + active: true, host: "neu.edu", subCollege: "CPS", termId: "1", diff --git a/tests/database/dumpProcessor.test.seq.ts b/tests/database/dumpProcessor.test.seq.ts index 151e6afb..079cfe68 100644 --- a/tests/database/dumpProcessor.test.seq.ts +++ b/tests/database/dumpProcessor.test.seq.ts @@ -25,11 +25,13 @@ afterAll(async () => { const termInfos: TermInfo[] = [ { + active: true, termId: "123456", subCollege: "NEU", text: "This is some text", }, { + active: true, termId: "654321", subCollege: "LAW", text: "This is some more text", @@ -103,6 +105,7 @@ describe("with termInfos", () => { it("deletes old termInfos", async () => { await prisma.termInfo.create({ data: { + active: true, termId: "1", subCollege: "NEU", text: "hello", @@ -122,6 +125,7 @@ describe("with termInfos", () => { it("doesn't delete old termInfos if deleteOutdatedData is false", async () => { await prisma.termInfo.create({ data: { + active: true, termId: "1", subCollege: "NEU", text: "hello", @@ -141,6 +145,7 @@ describe("with termInfos", () => { it("updates existing termInfos", async () => { await prisma.termInfo.create({ data: { + active: true, termId: "654321", subCollege: "fake college", text: "This is some more text",