From 18970a7b7b7f061a04cbfbfb82de03f28b09f63a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20Sacrist=C3=A1n?= Date: Fri, 4 Aug 2017 21:49:18 +0200 Subject: [PATCH] Fixing navigator test --- test/plugins/navigation.test.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/plugins/navigation.test.js b/test/plugins/navigation.test.js index bc110e4..99ffadc 100644 --- a/test/plugins/navigation.test.js +++ b/test/plugins/navigation.test.js @@ -15,7 +15,8 @@ test('Navigation plugin', () => { el: ws, goNext: next, goPrev: prev, - toggleZoom: zoom + toggleZoom: zoom, + options: {showIndex: true} }; const fakeArrow = Navigation.createArrow('arrow', 'Test'); @@ -24,7 +25,7 @@ test('Navigation plugin', () => { expect(fakeArrow.id).toBe('arrow'); expect(fakeArrow.textContent).toBe('Test'); - const fakeCounter = Navigation.createCounter('counter'); + const fakeCounter = Navigation.createCounter('counter', webslides); expect(fakeCounter.tagName).toBe('SPAN'); expect(fakeCounter.childNodes.length).toBe(1); expect(fakeCounter.childNodes[0].tagName).toBe('A');