Skip to content

Commit

Permalink
Fixes the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-s-molina committed Sep 30, 2021
1 parent 29aebbf commit 5ac3781
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ test('Refresh should work', async () => {
userEvent.click(select);

await waitFor(() => {
expect(SupersetClientGet).toBeCalledTimes(1);
expect(SupersetClientGet).toBeCalledTimes(2);
expect(props.getDbList).toBeCalledTimes(0);
expect(props.getTableList).toBeCalledTimes(0);
expect(props.handleError).toBeCalledTimes(0);
Expand All @@ -193,8 +193,8 @@ test('Refresh should work', async () => {
userEvent.click(screen.getByRole('button', { name: 'refresh' }));

await waitFor(() => {
expect(SupersetClientGet).toBeCalledTimes(2);
expect(props.getDbList).toBeCalledTimes(0);
expect(SupersetClientGet).toBeCalledTimes(3);
expect(props.getDbList).toBeCalledTimes(1);
expect(props.getTableList).toBeCalledTimes(0);
expect(props.handleError).toBeCalledTimes(0);
expect(props.onDbChange).toBeCalledTimes(0);
Expand Down

0 comments on commit 5ac3781

Please sign in to comment.