[pivot viz] fix formatting and verbose names (#2957)

* [pivot viz] fix formatting and verbose names

* Fixing tests
This commit is contained in:
Maxime Beauchemin
2017-06-19 22:10:54 -07:00
committed by GitHub
parent 3e51c61dbf
commit b9915e7ecf
3 changed files with 36 additions and 16 deletions

View File

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