mirror of
https://github.com/apache/superset.git
synced 2026-05-07 08:54:23 +00:00
Improve visualize modal test coverage (#2811)
add unit tests for VisualizeModal component
This commit is contained in:
@@ -23,7 +23,7 @@ describe('reducers', () => {
|
||||
describe('runQuery', () => {
|
||||
it('should handle query timeout', () => {
|
||||
const dispatch = sinon.spy();
|
||||
const urlStub = sinon.stub(exploreUtils, 'getExploreUrl', () => ('mockURL'));
|
||||
const urlStub = sinon.stub(exploreUtils, 'getExploreUrl').callsFake(() => ('mockURL'));
|
||||
const ajaxStub = sinon.stub($, 'ajax');
|
||||
ajaxStub.yieldsTo('error', { statusText: 'timeout' });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user