mirror of
https://github.com/apache/superset.git
synced 2026-07-09 00:05:36 +00:00
build(dev-deps): upgrade Jest to major version v30 (#33979)
This commit is contained in:
@@ -29,6 +29,7 @@ import {
|
||||
} from 'spec/helpers/testing-library';
|
||||
import ShareSqlLabQuery from 'src/SqlLab/components/ShareSqlLabQuery';
|
||||
import { initialState } from 'src/SqlLab/fixtures';
|
||||
import { omit } from 'lodash';
|
||||
|
||||
const mockStore = configureStore([thunk]);
|
||||
const defaultProps = {
|
||||
@@ -110,7 +111,7 @@ describe('ShareSqlLabQuery', () => {
|
||||
});
|
||||
});
|
||||
const button = screen.getByRole('button');
|
||||
const { id: _id, remoteId: _remoteId, ...expected } = mockQueryEditor;
|
||||
const expected = omit(mockQueryEditor, ['id', 'remoteId']);
|
||||
userEvent.click(button);
|
||||
await waitFor(() =>
|
||||
expect(fetchMock.calls(storeQueryUrl)).toHaveLength(1),
|
||||
@@ -134,7 +135,7 @@ describe('ShareSqlLabQuery', () => {
|
||||
});
|
||||
});
|
||||
const button = screen.getByRole('button');
|
||||
const { id: _id, ...expected } = unsavedQueryEditor;
|
||||
const expected = omit(unsavedQueryEditor, ['id']);
|
||||
userEvent.click(button);
|
||||
await waitFor(() =>
|
||||
expect(fetchMock.calls(storeQueryUrl)).toHaveLength(1),
|
||||
|
||||
Reference in New Issue
Block a user