Skip to content

Commit

Permalink
[PRMP-1035] add showMenu is false test case to RecordMenuCard tests
Browse files Browse the repository at this point in the history
  • Loading branch information
steph-torres-nhs committed Oct 18, 2024
1 parent 9a17ddd commit 3ae8345
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions app/src/components/generic/recordMenuCard/RecordMenuCard.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,18 @@ describe('RecordMenuCard', () => {

expect(mockShowDownloadAndRemoveConfirmation).toBeCalledTimes(1);
});

it('Does not render the MenuCard if showMenu is false', () => {
const { container } = render(
<RecordMenuCard
setStage={mockSetStage}
recordLinks={mockLinks}
className={className}
showMenu={false}
/>,
);
expect(container).toBeEmptyDOMElement();
});
});

describe('Navigation', () => {
Expand Down

0 comments on commit 3ae8345

Please sign in to comment.