Sort searched queries by recency (#1735)

* Sort searched queries by recency

* Fixed sqllab tests

* Add one more tr to QueryTable spec for pagination

* Change desc to asc as we reverse queries in component
This commit is contained in:
vera-liu
2016-12-14 10:14:54 -08:00
committed by GitHub
parent 2fb94a89e2
commit e1e20b8757
6 changed files with 31 additions and 22 deletions

View File

@@ -21,6 +21,6 @@ describe('QueryTable', () => {
it('renders a proper table', () => {
const wrapper = mount(<QueryTable {...mockedProps} />);
expect(wrapper.find('table')).to.have.length(1);
expect(wrapper.find('tr')).to.have.length(3);
expect(wrapper.find('tr')).to.have.length(4);
});
});