update app and towerlogo tests and remove stale code

This commit is contained in:
John Mitchell
2018-12-11 16:53:17 -05:00
committed by Jake McDermott
parent ebd09883fe
commit e25dcb2448
4 changed files with 10 additions and 47 deletions

View File

@@ -43,20 +43,6 @@ describe('<TowerLogo />', () => {
expect(towerLogoElem.props().history.length).toBe(2);
});
test('gracefully handles not being passed click handler', () => {
logoWrapper = mount(
<MemoryRouter>
<I18nProvider>
<TowerLogo />
</I18nProvider>
</MemoryRouter>
);
findChildren();
expect(towerLogoElem.props().history.length).toBe(1);
logoWrapper.simulate('click');
expect(towerLogoElem.props().history.length).toBe(1);
});
test('handles mouse over and out state.hover changes', () => {
const onLogoClick = jest.fn();
logoWrapper = mount(