Skip to content

Commit

Permalink
save work
Browse files Browse the repository at this point in the history
  • Loading branch information
flacoman91 committed Mar 26, 2024
1 parent 34ff398 commit 2db7f35
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/ResultsPanel.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ describe('ResultsPanel', () => {
});

it('renders list panel without crashing', () => {
renderComponent({ tab: MODE_LIST }, {});
renderComponent({}, { tab: MODE_LIST });
expect(screen.getByRole('button', { name: /Trends/ })).not.toHaveClass(
'active',
);
Expand All @@ -46,7 +46,7 @@ describe('ResultsPanel', () => {
});

it('renders map panel without crashing', () => {
renderComponent({ tab: MODE_MAP }, {});
renderComponent({}, { tab: MODE_MAP });
expect(screen.getByRole('button', { name: /Trends/ })).not.toHaveClass(
'active',
);
Expand All @@ -59,8 +59,8 @@ describe('ResultsPanel', () => {

it('renders printMode without crashing', () => {
renderComponent(
{ searchText: 'Tacos', tab: MODE_MAP },
{ isPrintMode: true },
{ searchText: 'Tacos' },
{ isPrintMode: true, tab: MODE_MAP },
);
expect(screen.getByRole('button', { name: /Trends/ })).not.toHaveClass(
'active',
Expand Down

0 comments on commit 2db7f35

Please sign in to comment.