-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
8e5d182
commit 8929058
Showing
3 changed files
with
0 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,7 +43,6 @@ const mockSummaryData: Summary = { | |
agency_contact_description: "<p>Contact Description</p>", | ||
agency_email_address: "[email protected]", | ||
agency_email_address_description: "Contact Email Description", | ||
agency_phone_number: "123-456-7890", | ||
} as Summary; | ||
|
||
describe("OpportunityDescription", () => { | ||
|
@@ -140,19 +139,12 @@ describe("OpportunityDescription", () => { | |
|
||
expect(screen.getByText("[email protected]")).toBeInTheDocument(); | ||
expect(screen.getByText("Contact Email Description")).toBeInTheDocument(); | ||
expect(screen.getByText("123-456-7890")).toBeInTheDocument(); | ||
|
||
const mailtoLink = screen.getByRole("link", { | ||
name: "[email protected]", | ||
}); | ||
const agency_email = "[email protected]"; | ||
expect(mailtoLink).toHaveAttribute("href", `mailto:${agency_email}`); | ||
|
||
const telLink = screen.getByRole("link", { | ||
name: "123-456-7890", | ||
}); | ||
const number = "1234567890"; | ||
expect(telLink).toHaveAttribute("href", `tel:${number}`); | ||
}); | ||
|
||
it("renders information correctly when null values are present", () => { | ||
|
@@ -165,7 +157,6 @@ describe("OpportunityDescription", () => { | |
agency_contact_description: null, | ||
agency_email_address: null, | ||
agency_email_address_description: null, | ||
agency_phone_number: null, | ||
summary_description: null, | ||
}} | ||
nofoPath="" | ||
|
@@ -187,9 +178,5 @@ describe("OpportunityDescription", () => { | |
const emailHeading = screen.getByText("email"); | ||
expect(emailHeading).toBeInTheDocument(); | ||
expect(emailHeading.nextElementSibling).toHaveTextContent("--"); | ||
|
||
const telephoneHeading = screen.getByText("telephone"); | ||
expect(telephoneHeading).toBeInTheDocument(); | ||
expect(telephoneHeading.nextElementSibling).toHaveTextContent("--"); | ||
}); | ||
}); |