Skip to content

Commit

Permalink
add green test back
Browse files Browse the repository at this point in the history
  • Loading branch information
BobanL committed Jan 3, 2025
1 parent bc856d4 commit c545b52
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,19 @@ describe("Evaluate eCR Summary Condition Summary", () => {
).not.toBeInTheDocument();
expect(screen.getByText("SARS-CoV-2 PCR")).toBeInTheDocument();
});
it("should return immunization details based on snomed code", () => {
const actual = evaluateEcrSummaryConditionSummary(
BundleEcrSummary as unknown as Bundle,
mappings,
);
render(
actual[1].immunizationDetails.map((detail) => (
<React.Fragment key={Math.random()}>{detail.value}</React.Fragment>
)),
);

expect(screen.getByText("SARS-CoV-2 PCR Vaccine")).toBeInTheDocument();
});
it("should not display non-related immunization details", () => {
const actual = evaluateEcrSummaryConditionSummary(
{
Expand Down

0 comments on commit c545b52

Please sign in to comment.