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);