mirror of
https://github.com/apache/superset.git
synced 2026-07-08 15:55:33 +00:00
chore(deps-dev): bump fetch-mock from 11.1.5 to 12.6.0 in /superset-frontend/packages/superset-ui-core (#36662)
Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: hainenber <dotronghai96@gmail.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Evan Rusackas <evan@rusackas.com> Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com> Co-authored-by: hainenber <dotronghai96@gmail.com>
This commit is contained in:
@@ -57,7 +57,7 @@ describe('QueryAutoRefresh', () => {
|
||||
});
|
||||
|
||||
afterEach(() => {
|
||||
fetchMock.reset();
|
||||
fetchMock.clearHistory().removeRoutes();
|
||||
cleanup();
|
||||
jest.runOnlyPendingTimers();
|
||||
jest.useRealTimers();
|
||||
@@ -162,7 +162,7 @@ describe('QueryAutoRefresh', () => {
|
||||
expect(
|
||||
store.getActions().filter(({ type }) => type === REFRESH_QUERIES),
|
||||
).toHaveLength(0);
|
||||
expect(fetchMock.calls(refreshApi)).toHaveLength(1);
|
||||
expect(fetchMock.callHistory.calls(refreshApi)).toHaveLength(1);
|
||||
});
|
||||
|
||||
test('Does not fail and attempts to refresh with mixed valid/invalid queries', async () => {
|
||||
@@ -217,7 +217,7 @@ describe('QueryAutoRefresh', () => {
|
||||
),
|
||||
);
|
||||
|
||||
expect(fetchMock.calls(refreshApi)).toHaveLength(0);
|
||||
expect(fetchMock.callHistory.calls(refreshApi)).toHaveLength(0);
|
||||
});
|
||||
|
||||
test('logs the failed error for async queries', async () => {
|
||||
|
||||
Reference in New Issue
Block a user