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:
fabianmenges
2017-12-16 19:10:45 -05:00
committed by Maxime Beauchemin
parent e79d05fd77
commit 500e6256c0
29 changed files with 2417 additions and 474 deletions

View File

@@ -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);
});
});
});