From 89b3a1ad42cb0a69f65e8d7bfa4e8658815a2eee Mon Sep 17 00:00:00 2001 From: Bart Peeters Date: Wed, 3 Jan 2018 21:04:00 +0100 Subject: [PATCH] Fix test clearTimeout blur --- test/daypickerinput/rendering.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/daypickerinput/rendering.js b/test/daypickerinput/rendering.js index 2f0908913b..c003f313dd 100644 --- a/test/daypickerinput/rendering.js +++ b/test/daypickerinput/rendering.js @@ -114,7 +114,7 @@ describe('DayPickerInput', () => { mount(, { attachTo: container }); const spy = jest.spyOn(window, 'clearTimeout'); ReactDOM.unmountComponentAtNode(container); - expect(spy).toHaveBeenCalledTimes(3); + expect(spy).toHaveBeenCalledTimes(2); spy.mockRestore(); }); it('should set today when clicking on today button', () => {