feat: minor reorder SQL Lab Tab controls (#10257)

This commit is contained in:
Grace Guo
2020-07-08 16:21:47 -07:00
committed by GitHub
parent baeacc3c56
commit 6690963ec2
5 changed files with 68 additions and 64 deletions

View File

@@ -36,18 +36,4 @@ describe('TabStatusIcon', () => {
expect(wrapper.find('div.circle')).toHaveLength(1);
expect(wrapper.text()).toBe('');
});
it('renders a circle with an x when hovered', () => {
const { wrapper } = setup();
wrapper.simulate('mouseOver');
expect(wrapper.find('div.circle')).toHaveLength(1);
expect(wrapper.text()).toBe('×');
});
it('calls onClose from props when clicked', () => {
const { wrapper, onClose } = setup();
wrapper.simulate('click');
// eslint-disable-next-line no-unused-expressions
expect(onClose.calledOnce).toBe(true);
});
});