Skip to content

Commit

Permalink
fix syphilis guidance test
Browse files Browse the repository at this point in the history
  • Loading branch information
mehansen committed Jul 24, 2024
1 parent 98009cd commit c22bd93
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe("SyphilisResultGuidance", () => {
testResult: TEST_RESULTS.POSITIVE,
} as MultiplexResult;

it("displays guidance for a positive RSV result", () => {
it("displays guidance for a positive syphilis result", () => {
const { container } = render(
<SyphilisResultGuidance result={mockResultTemplate} />
);
Expand All @@ -29,12 +29,12 @@ describe("SyphilisResultGuidance", () => {
];

test.each(nonPositiveCases)(
"displays no RSV guidance for %p result",
"displays no syphilis guidance for %p result",
(testResult) => {
const mockResult = cloneDeep(mockResultTemplate);
mockResult.testResult = testResult;
render(<SyphilisResultGuidance result={mockResult} />);
expect(screen.queryByText("For Syphilis")).not.toBeInTheDocument();
expect(screen.queryByText("For syphilis:")).not.toBeInTheDocument();
}
);
});
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`SyphilisResultGuidance displays guidance for a positive RSV result 1`] = `
exports[`SyphilisResultGuidance displays guidance for a positive syphilis result 1`] = `
<div>
<p
class="text-bold sr-guidance-heading"
Expand Down

0 comments on commit c22bd93

Please sign in to comment.