Skip to content

Commit

Permalink
fix: remove redundant Application status tests
Browse files Browse the repository at this point in the history
  • Loading branch information
KrissDrawing committed Oct 6, 2023
1 parent 3e84067 commit 42977c4
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 87 deletions.
38 changes: 0 additions & 38 deletions doorway-ui-components/__tests__/blocks/ImageCard.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,44 +22,6 @@ describe("<ImageCard>", () => {
)
})

it("renders with an application status bar", () => {
const { getByText } = render(
<ImageCard
imageUrl={"/images/listing.jpg"}
statuses={[
{ status: ApplicationStatusType.Closed, content: t("listings.applicationsClosed") },
]}
/>
)
expect(getByText("Applications Closed", { exact: false })).not.toBeNull()
})

it("renders with multiple applications status bars", () => {
const { getByText } = render(
<ImageCard
imageUrl={"/images/listing.jpg"}
statuses={[
{ status: ApplicationStatusType.Closed, content: "Applications Closed" },
{ status: ApplicationStatusType.PreLottery, content: "Lottery Results Posted Tomorrow" },
]}
/>
)
expect(getByText("Applications Closed", { exact: false })).not.toBeNull()
expect(getByText("Lottery Results Posted Tomorrow", { exact: false })).not.toBeNull()
})

it("renders with custom icon", () => {
const { getByText } = render(
<ImageCard
imageUrl={"/images/listing.jpg"}
statuses={[
{ status: ApplicationStatusType.Matched, content: "Matched", iconType: "check" },
]}
/>
)
expect(getByText("Matched", { exact: false })).not.toBeNull()
})

it("renders with image tags", () => {
const { getByText } = render(
<ImageCard
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ describe("<ListingCard>", () => {
expect(getByText("see details")).toBeTruthy()
expect(getByText("child content")).toBeTruthy()
expect(getAllByText("reserved community tag")).toBeTruthy()
expect(getAllByText("status content")).toBeTruthy()
expect(getAllByText("cellA")).toBeTruthy()
expect(getAllByText("cellB")).toBeTruthy()
expect(getAllByText("cellC")).toBeTruthy()
Expand Down

0 comments on commit 42977c4

Please sign in to comment.