mirror of
https://github.com/apache/superset.git
synced 2026-04-18 07:35:09 +00:00
[pivot viz] fix formatting and verbose names (#2957)
* [pivot viz] fix formatting and verbose names * Fixing tests
This commit is contained in:
committed by
GitHub
parent
3e51c61dbf
commit
b9915e7ecf
@@ -59,9 +59,10 @@ describe('QuerySearch', () => {
|
||||
});
|
||||
|
||||
it('refreshes queries when clicked', () => {
|
||||
const spy = sinon.spy(QuerySearch.prototype, 'refreshQueries');
|
||||
const search = sinon.spy(QuerySearch.prototype, 'refreshQueries');
|
||||
wrapper = shallow(<QuerySearch {...mockedProps} />);
|
||||
wrapper.find(Button).simulate('click');
|
||||
expect(spy.called).to.equal(true);
|
||||
/* eslint-disable no-unused-expressions */
|
||||
expect(search.called).to.equal(true);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user