mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
Dashboard refactory (#3581)
Create Chart component for all chart fetching and rendering, and apply redux architecture in dashboard view.
This commit is contained in:
@@ -3,7 +3,7 @@ import { expect } from 'chai';
|
||||
import sinon from 'sinon';
|
||||
import $ from 'jquery';
|
||||
import * as exploreUtils from '../../../javascripts/explore/exploreUtils';
|
||||
import * as actions from '../../../javascripts/explore/actions/chartActions';
|
||||
import * as actions from '../../../javascripts/chart/chartAction';
|
||||
|
||||
describe('chart actions', () => {
|
||||
let dispatch;
|
||||
|
||||
@@ -24,7 +24,7 @@ describe('SaveModal', () => {
|
||||
},
|
||||
explore: {
|
||||
can_overwrite: true,
|
||||
user_id: '1',
|
||||
userId: '1',
|
||||
datasource: {},
|
||||
slice: {
|
||||
slice_id: 1,
|
||||
|
||||
@@ -3,6 +3,7 @@ import { it, describe } from 'mocha';
|
||||
import { expect } from 'chai';
|
||||
import sinon from 'sinon';
|
||||
import $ from 'jquery';
|
||||
import * as chartActions from '../../../javascripts/chart/chartAction';
|
||||
import * as actions from '../../../javascripts/explore/actions/exploreActions';
|
||||
import { defaultState } from '../../../javascripts/explore/stores/store';
|
||||
import exploreReducer from '../../../javascripts/explore/reducers/exploreReducer';
|
||||
@@ -77,7 +78,7 @@ describe('fetching actions', () => {
|
||||
ajaxStub.yieldsTo('success', { data: '' });
|
||||
makeRequest(true);
|
||||
expect(dispatch.callCount).to.equal(5);
|
||||
expect(dispatch.getCall(4).args[0].type).to.equal(actions.TRIGGER_QUERY);
|
||||
expect(dispatch.getCall(4).args[0].type).to.equal(chartActions.TRIGGER_QUERY);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user