Skip to content

Commit

Permalink
remove single legend test
Browse files Browse the repository at this point in the history
  • Loading branch information
juandjara committed Mar 12, 2024
1 parent 3c12b7a commit 04e825c
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions packages/react-ui/__tests__/widgets/LegendWidgetUI.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,16 +83,6 @@ describe('LegendWidgetUI', () => {

const Widget = (props) => <LegendWidgetUI {...props} />;

test('single legend', () => {
render(<Widget layers={[DATA[0]]}></Widget>);
// expanded legend toggle
expect(screen.queryByText('Layers')).not.toBeInTheDocument();
// collapsed legend toggle
expect(screen.queryByLabelText('Layers')).not.toBeInTheDocument();
// layer title
expect(screen.queryByTestId('categories-legend')).toBeInTheDocument();
});

test('multiple legends', () => {
render(<Widget layers={DATA}></Widget>);
expect(screen.queryByText('Layers')).toBeInTheDocument();
Expand Down

0 comments on commit 04e825c

Please sign in to comment.