perf(explore): render datasource details only when needed (#10924)

This commit is contained in:
Jesse Yang
2020-10-02 12:15:06 -07:00
committed by GitHub
parent 269644d18e
commit 53cd05d74a
2 changed files with 59 additions and 34 deletions

View File

@@ -60,14 +60,14 @@ describe('DatasourceControl', () => {
});
}
it('renders a Modal', () => {
it('should not render Modal', () => {
const wrapper = setup();
expect(wrapper.find(DatasourceModal)).toExist();
expect(wrapper.find(DatasourceModal)).toHaveLength(0);
});
it('renders a ChangeDatasourceModal', () => {
it('should not render ChangeDatasourceModal', () => {
const wrapper = setup();
expect(wrapper.find(ChangeDatasourceModal)).toExist();
expect(wrapper.find(ChangeDatasourceModal)).toHaveLength(0);
});
it('show or hide Edit Datasource option', () => {