Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
shahzad31 committed May 19, 2021
1 parent fc6a553 commit 0fbfb75
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ describe('Lens Attribute', () => {
orderBy: { columnId: 'y-axis-column', type: 'column' },
orderDirection: 'desc',
otherBucket: true,
size: 3,
size: 10,
},
scale: 'ordinal',
sourceField: 'user_agent.name',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,27 @@ describe('Breakdowns', function () {
it('should render properly', async function () {
mockUrlStorage({});

render(<Breakdowns seriesId={'series-id'} breakdowns={dataViewSeries.breakdowns} />);
render(
<Breakdowns
seriesId={'series-id'}
breakdowns={dataViewSeries.breakdowns}
reportViewConfig={dataViewSeries}
/>
);

screen.getAllByText('Browser family');
});

it('should call set series on change', function () {
const { setSeries } = mockUrlStorage({ breakdown: USER_AGENT_OS });

render(<Breakdowns seriesId={'series-id'} breakdowns={dataViewSeries.breakdowns} />);
render(
<Breakdowns
seriesId={'series-id'}
breakdowns={dataViewSeries.breakdowns}
reportViewConfig={dataViewSeries}
/>
);

screen.getAllByText('Operating system');

Expand Down

0 comments on commit 0fbfb75

Please sign in to comment.