diff --git a/src/__tests__/Dropdown-test.js b/src/__tests__/Dropdown-test.js index 3f2c4b91..58a1827a 100644 --- a/src/__tests__/Dropdown-test.js +++ b/src/__tests__/Dropdown-test.js @@ -41,15 +41,15 @@ it('changes the class when hovered', () => { let tree = component.toJSON() expect(tree).toMatchSnapshot() - // manually trigger the callback + // manually trigger the callback tree.children[1].props.onMouseEnter() expect(component.toJSON()).toMatchSnapshot() - // manually trigger the callback + // manually trigger the callback tree.children[1].props.onMouseLeave() expect(component.toJSON()).toMatchSnapshot() - // Fast forward timers, class should now be gone + // Fast forward timers, class should now be gone jest.runAllTimers() expect(component.toJSON()).toMatchSnapshot() @@ -58,13 +58,13 @@ it('changes the class when hovered', () => { expect(instance.state.isOpen).toBeTruthy() component = renderer.create( - +
{LoremIpsum}
- ) + ) instance = component.getInstance() instance.handleMouseEnter() expect(instance.state.isOpen).toBeTruthy()