diff --git a/superset-frontend/spec/javascripts/datasource/ChangeDatasourceModal_spec.jsx b/superset-frontend/spec/javascripts/datasource/ChangeDatasourceModal_spec.jsx index 9b7eefc8a..c1f02e09a 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\/\\?q*/)).toHaveLength(3); + expect(fetchMock.calls(INFO_ENDPOINT)).toHaveLength(3); }); it('renders confirmation message', async () => {