Skip to content

Commit

Permalink
fix: made tests succeed by replacing the int id with the string id
Browse files Browse the repository at this point in the history
  • Loading branch information
tyboro2002 committed Mar 28, 2024
1 parent bc0e90a commit b364bf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/test/unit/course.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ describe("course", (): void => {
// you can also import "test" instead of "it", because it's the exact same
// but with "it", it's easy to read => it (referring to the course) returns correct course year
it("returns correct course year", (): void => {
const course: Course = new Course(1, "course", "description", 2003)
const course: Course = new Course("1", "course", "description", 2003)
// use expect for assertions
// after expect, there are a multitude of possible functions such as:
// toBe, toEqual, toContain
Expand Down

0 comments on commit b364bf7

Please sign in to comment.