Skip to content

Commit

Permalink
test: fix SequenceNavigationTabs test
Browse files Browse the repository at this point in the history
  • Loading branch information
bra-i-am committed Apr 12, 2024
1 parent 41131e1 commit 6c8d139
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,10 @@ describe('Sequence Navigation Tabs', () => {

it('renders unit buttons and dropdown button', async () => {
let container = null;
useIndexOfLastVisibleChild.mockReturnValue([-1, null, null]);
const booyah = render(<SequenceNavigationTabs {...mockData} />, { wrapWithRouter: true });

await act(async () => {
useIndexOfLastVisibleChild.mockReturnValue([-1, null, null]);
const booyah = render(<SequenceNavigationTabs {...mockData} />, { wrapWithRouter: true });
container = booyah.container;

const dropdownToggle = container.querySelector('.dropdown-toggle');
Expand Down

0 comments on commit 6c8d139

Please sign in to comment.