fixing the datasource inconsistence but in visualize flow (#3698)

datasource in landing explore view is not the datasource created in sal lab.
This commit is contained in:
Grace Guo
2017-10-23 20:29:49 -07:00
committed by GitHub
parent 58ea736ed6
commit 18e9640d99
2 changed files with 5 additions and 2 deletions

View File

@@ -340,6 +340,8 @@ describe('VisualizeModal', () => {
wrapper.setProps({ actions: { createDatasource: datasourceSpy } });
wrapper.instance().visualize();
expect(exploreUtils.getExploreUrl.callCount).to.equal(1);
expect(exploreUtils.getExploreUrl.getCall(0).args[0].datasource).to.equal('107__table');
expect(window.open.callCount).to.equal(1);
});
it('should notify error', () => {