Skip to content

Commit

Permalink
Add test for Item due date
Browse files Browse the repository at this point in the history
  • Loading branch information
dgcohen committed Dec 1, 2023
1 parent 475c0a0 commit d8c6fdc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions __test__/fixtures/itemFixtures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export const itemPhysicallyRequestable = {
prefLabel: "book, limited circ, MaRLI",
},
],
dueDate: ["September 3rd"],
eddRequestable: false,
enumerationChronology: ["no. 4 (2001)"],
formatLiteral: ["Text"],
Expand Down
4 changes: 4 additions & 0 deletions src/models/modelTests/Item.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ describe("Item model", () => {
expect(item.barcode).toBe("33433090622188")
})

it("initializes the Item's due date", () => {
expect(item.dueDate).toBe("September 3rd")
})

it("initializes the Item's location", () => {
expect(item.location).toStrictEqual({
"@id": "loc:mal82",
Expand Down

0 comments on commit d8c6fdc

Please sign in to comment.