Fix style of legacy column headers (#6342)

* Fix regression from #6199: Style of legacy column headers

* Fix tests

* Clean up variables
This commit is contained in:
Eugen Rochko
2018-01-24 04:03:51 +01:00
committed by GitHub
parent b1daa71da5
commit daefbd66a6
2 changed files with 13 additions and 11 deletions

View File

@ -21,13 +21,13 @@ describe('<Column />', () => {
<div className='scrollable' />
</Column>
);
wrapper.find(ColumnHeader).simulate('click');
wrapper.find(ColumnHeader).find('button').simulate('click');
expect(global.requestAnimationFrame.mock.calls.length).toEqual(1);
});
it('does not try to scroll if there is no scrollable content', () => {
const wrapper = mount(<Column heading='notifications' />);
wrapper.find(ColumnHeader).simulate('click');
wrapper.find(ColumnHeader).find('button').simulate('click');
expect(global.requestAnimationFrame.mock.calls.length).toEqual(0);
});
});