mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
Full Annotation Framework (#3518)
* Adding full Annotation Framework * Viz types * Re organizing native annotations * liniting * Bug fix * Handle no data * Cleanup * Refactor slice form_data to data
This commit is contained in:
committed by
Maxime Beauchemin
parent
e79d05fd77
commit
500e6256c0
@@ -23,14 +23,16 @@ describe('chart actions', () => {
|
||||
});
|
||||
|
||||
it('should handle query timeout', () => {
|
||||
ajaxStub.yieldsTo('error', { statusText: 'timeout' });
|
||||
ajaxStub.rejects({ statusText: 'timeout' });
|
||||
request = actions.runQuery({});
|
||||
request(dispatch, sinon.stub().returns({
|
||||
const promise = request(dispatch, sinon.stub().returns({
|
||||
explore: {
|
||||
controls: [],
|
||||
},
|
||||
}));
|
||||
expect(dispatch.callCount).to.equal(3);
|
||||
expect(dispatch.args[0][0].type).to.equal(actions.CHART_UPDATE_TIMEOUT);
|
||||
promise.then(() => {
|
||||
expect(dispatch.callCount).to.equal(3);
|
||||
expect(dispatch.args[0][0].type).to.equal(actions.CHART_UPDATE_TIMEOUT);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user