[explore] raise attention to row_limit being reached (#6252)

* [explore] raise attention to row_limit being reached

* fix test
This commit is contained in:
Maxime Beauchemin
2018-11-05 08:31:44 -08:00
committed by GitHub
parent fb13218472
commit 08cdb09714
2 changed files with 3 additions and 3 deletions

View File

@@ -20,12 +20,12 @@ describe('RowCountLabel', () => {
expect(wrapper.find(Label)).toHaveLength(1);
expect(wrapper.find(TooltipWrapper)).toHaveLength(1);
});
it('renders a warning when limit is reached', () => {
it('renders a danger when limit is reached', () => {
const props = {
rowcount: 100,
limit: 100,
};
const wrapper = shallow(<RowCountLabel {...props} />);
expect(wrapper.find(Label).first().props().bsStyle).toBe('warning');
expect(wrapper.find(Label).first().props().bsStyle).toBe('danger');
});
});