mirror of
https://github.com/apache/superset.git
synced 2026-04-28 04:25:07 +00:00
chore(fe): replace deprecate aliased Jest matchers with corresponding substituents (#30355)
Signed-off-by: hainenber <dotronghai96@gmail.com> Co-authored-by: Evan Rusackas <evan@preset.io>
This commit is contained in:
@@ -127,7 +127,7 @@ describe('ShareSqlLabQuery', () => {
|
||||
const storeQuerySpy = jest.spyOn(utils, 'storeQuery');
|
||||
userEvent.click(button);
|
||||
expect(storeQuerySpy.mock.calls).toHaveLength(1);
|
||||
expect(storeQuerySpy).toBeCalledWith(expected);
|
||||
expect(storeQuerySpy).toHaveBeenCalledWith(expected);
|
||||
storeQuerySpy.mockRestore();
|
||||
});
|
||||
|
||||
@@ -142,7 +142,7 @@ describe('ShareSqlLabQuery', () => {
|
||||
const storeQuerySpy = jest.spyOn(utils, 'storeQuery');
|
||||
userEvent.click(button);
|
||||
expect(storeQuerySpy.mock.calls).toHaveLength(1);
|
||||
expect(storeQuerySpy).toBeCalledWith(expected);
|
||||
expect(storeQuerySpy).toHaveBeenCalledWith(expected);
|
||||
storeQuerySpy.mockRestore();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user