[superset-client][datasource editor] replace ajax with SupersetClient (#6134)

* [superset-client][datasource editor] replace ajax with SupersetClient

* [superset-client][datasource control] replace ajax with SupersetClient

* [superset-client][datasource editor] remove unused funcs in DatasourceControl

* [superset-client][data source control] lint, remove toasts

* [superset-client] fix DatasourceControl_spec

* [superset-client] remove unneeded functional setState calls
This commit is contained in:
Chris Williams
2018-10-19 11:41:11 -07:00
committed by GitHub
parent 546d150b91
commit 96228adda9
6 changed files with 96 additions and 116 deletions

View File

@@ -28,7 +28,7 @@ describe('DatasourceControl', () => {
function setup() {
const mockStore = configureStore([]);
const store = mockStore({});
return shallow(<DatasourceControl {...defaultProps} />, { context: { store } }).dive();
return shallow(<DatasourceControl {...defaultProps} />, { context: { store } });
}
it('renders a Modal', () => {