Skip to content

Commit

Permalink
update test names
Browse files Browse the repository at this point in the history
  • Loading branch information
charmingduchess committed Jan 3, 2025
1 parent ed9d4f3 commit d9c834f
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/components/ItemTable/ItemAvailability.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ describe("ItemAvailability", () => {
screen.queryByText("Schwarzman Building - Main Reading Room 315")
).not.toBeInTheDocument()
})
it("onsite aeon finding aid", () => {
it("onsite YES aeon YES finding aid", () => {
const item = new Item(itemPhysicallyRequestable, parentBib)
item.availability = new ItemAvailabilityModel({
isAvailable: true,
Expand All @@ -48,7 +48,7 @@ describe("ItemAvailability", () => {
"Schwarzman Building - Main Reading Room 315"
)
})
it("recap aeon finding aid", () => {
it("recap YES aeon YES finding aid", () => {
const item = new Item(itemPhysicallyRequestable, parentBib)
item.availability = new ItemAvailabilityModel({
isAvailable: true,
Expand All @@ -64,13 +64,13 @@ describe("ItemAvailability", () => {
screen.queryByText("Schwarzman Building - Main Reading Room 315")
).not.toBeInTheDocument()
})
it("recap aeon", () => {
it("recap YES aeon NO finding ait", () => {
const item = new Item(itemPhysicallyRequestable, parentBib)
item.availability = new ItemAvailabilityModel({
isAvailable: true,
isReCAP: true,
aeonUrl: "spaghetti.com",
findingAid: "meatballs.com",
findingAid: null,
isSpecRequestable: true,
})
render(<ItemAvailability item={item} />)
Expand All @@ -80,7 +80,7 @@ describe("ItemAvailability", () => {
screen.queryByText("Schwarzman Building - Main Reading Room 315")
).not.toBeInTheDocument()
})
it("onsite aeon NO finding aid", () => {
it("onsite YES aeon NO finding aid", () => {
const item = new Item(itemPhysicallyRequestable, parentBib)
item.availability = new ItemAvailabilityModel({
isAvailable: true,
Expand Down Expand Up @@ -172,6 +172,7 @@ describe("ItemAvailability", () => {
expect(screen.getByText("contact a librarian")).toBeInTheDocument()
})
})

it("renders the correct link when item is available, is reCAP, and does not have an aeon url", async () => {
const item = new Item(itemNYPLReCAP, parentBib)
render(<ItemAvailability item={item} />)
Expand Down

0 comments on commit d9c834f

Please sign in to comment.