From d0714a097294f5ab1405b7958994eab1b6af7dec Mon Sep 17 00:00:00 2001 From: "Michael S. Molina" <70410625+michael-s-molina@users.noreply.github.com> Date: Sat, 6 Mar 2021 02:23:03 -0300 Subject: [PATCH] chore: Moves ChartIcon to own folder (#13454) --- .../spec/javascripts/datasource/ChangeDatasourceModal_spec.jsx | 2 +- .../src/components/{ChartIcon.tsx => ChartIcon/index.tsx} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename superset-frontend/src/components/{ChartIcon.tsx => ChartIcon/index.tsx} (100%) diff --git a/superset-frontend/spec/javascripts/datasource/ChangeDatasourceModal_spec.jsx b/superset-frontend/spec/javascripts/datasource/ChangeDatasourceModal_spec.jsx index bdef06ad593..9b7eefc8af1 100644 --- a/superset-frontend/spec/javascripts/datasource/ChangeDatasourceModal_spec.jsx +++ b/superset-frontend/spec/javascripts/datasource/ChangeDatasourceModal_spec.jsx @@ -84,7 +84,7 @@ describe('ChangeDatasourceModal', () => { }); it('fetches datasources', async () => { - expect(fetchMock.calls(/api\/v1\/dataset/)).toHaveLength(3); + expect(fetchMock.calls(/api\/v1\/dataset\/\\?q*/)).toHaveLength(3); }); it('renders confirmation message', async () => { diff --git a/superset-frontend/src/components/ChartIcon.tsx b/superset-frontend/src/components/ChartIcon/index.tsx similarity index 100% rename from superset-frontend/src/components/ChartIcon.tsx rename to superset-frontend/src/components/ChartIcon/index.tsx