mirror of
https://github.com/apache/superset.git
synced 2026-05-11 10:55:43 +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:
@@ -258,11 +258,13 @@ test('retains query mode requirements when query_mode is enabled', async () => {
|
||||
|
||||
await waitFor(() => renderWithRouter({ initialState: customState }));
|
||||
|
||||
const formDataEndpointCalls = fetchMock.calls(/api\/v1\/explore\/form_data/);
|
||||
const formDataEndpointCalls = fetchMock.callHistory.calls(
|
||||
/api\/v1\/explore\/form_data/,
|
||||
);
|
||||
expect(formDataEndpointCalls.length).toBeGreaterThan(0);
|
||||
const lastCall = formDataEndpointCalls[formDataEndpointCalls.length - 1];
|
||||
|
||||
const body = JSON.parse(lastCall[1]?.body as string);
|
||||
const body = JSON.parse(lastCall.options?.body as string);
|
||||
const formData = JSON.parse(body.form_data);
|
||||
|
||||
const queryModeFields = Object.keys(
|
||||
@@ -296,11 +298,13 @@ test('does omit hiddenFormData when query_mode is not enabled', async () => {
|
||||
|
||||
await waitFor(() => renderWithRouter({ initialState: customState }));
|
||||
|
||||
const formDataEndpointCalls = fetchMock.calls(/api\/v1\/explore\/form_data/);
|
||||
const formDataEndpointCalls = fetchMock.callHistory.calls(
|
||||
/api\/v1\/explore\/form_data/,
|
||||
);
|
||||
expect(formDataEndpointCalls.length).toBeGreaterThan(0);
|
||||
const lastCall = formDataEndpointCalls[formDataEndpointCalls.length - 1];
|
||||
|
||||
const body = JSON.parse(lastCall[1]?.body as string);
|
||||
const body = JSON.parse(lastCall.options?.body as string);
|
||||
const formData = JSON.parse(body.form_data);
|
||||
|
||||
Object.keys(customState.explore.hiddenFormData).forEach(key => {
|
||||
|
||||
Reference in New Issue
Block a user