From 63ac064a2517cd936ef30693c14aef43dce9d357 Mon Sep 17 00:00:00 2001 From: Luis Date: Wed, 21 Jun 2017 17:26:51 +0200 Subject: [PATCH] Fixing zoom test --- test/plugins/zoom.test.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/plugins/zoom.test.js b/test/plugins/zoom.test.js index 5d246a2..41f7346 100644 --- a/test/plugins/zoom.test.js +++ b/test/plugins/zoom.test.js @@ -15,7 +15,8 @@ const simulateKeyEvent = (el, code) => { beforeAll(() => { const slides = '12345'.replace(/(\d)/g, - '
Slide $1
'); + '
Slide $1
') + .replace('section-1" class="', 'section-1" class="current '); document.body.innerHTML = `
${slides}
`; }); @@ -50,7 +51,7 @@ test('Zoom utility', () => { expect(zws.style.display).toBe(''); // Wait until next execution - jest.runTimersToTime(401); + jest.runTimersToTime(500); expect(disable.mock.calls.length).toBe(1); expect(enable.mock.calls.length).toBe(0); expect(goto.mock.calls.length).toBe(0);