Skip to content
This repository has been archived by the owner on Sep 1, 2024. It is now read-only.

Commit

Permalink
fix UT
Browse files Browse the repository at this point in the history
  • Loading branch information
iadibar committed Feb 11, 2024
1 parent 195b4b9 commit ffe4258
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion portal/src/app/components/sub-header/SubHeader.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ describe('SubHeader', () => {
(Button as jest.Mock).mockImplementation(() => <div>Button</div>);
const { container, getByText }: RenderResult = render(<SubHeader handleCloseClick={jest.fn()} />, { wrapper: MemoryRouter });
expect(container.firstChild).toMatchSnapshot();
expect(getByText('That’s what are we doing on each iteration:')).toBeTruthy();
expect(getByText('Deriving symmetric keys, establishing a secure channel for communication.')).toBeTruthy();
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,18 @@ exports[`SubHeader renders sub header 1`] = `
<div
class="sub_header_wrapper"
>
<div>
Button
</div>
<div
class="sub_header_title"
class="sub_header_action_buttons"
>
That’s what are we doing on each iteration:
<div>
Button
</div>
<div>
Button
</div>
</div>
<div
class="items_wrapper"
class="items_wrapper_open items_wrapper"
>
<div
class="item"
Expand Down

0 comments on commit ffe4258

Please sign in to comment.