1
0
mirror of https://github.com/webslides/WebSlides.git synced 2025-08-18 02:41:37 +02:00

Adding coverage

This commit is contained in:
Antonio Laguna
2017-05-29 07:52:43 +02:00
parent 0e2a4a9587
commit 3d236c518a
3 changed files with 9 additions and 3 deletions

View File

@@ -2,7 +2,8 @@ import DOM from '../../src/js/utils/dom';
import Hash from '../../src/js/plugins/hash';
beforeAll(() => {
document.body.innerHTML = `<div id="webslides" data-test="test"><p>Text</p></div>`;
document.body.innerHTML =
`<div id="webslides" data-test="test"><p>Text</p></div>`;
});
test('Hash plugin', () => {
@@ -21,7 +22,7 @@ test('Hash plugin', () => {
expect(goto).not.toBeCalled();
const hash = new Hash(webslides);
new Hash(webslides);
expect(Hash.getSlideNumber()).toBe(0);
DOM.fireEvent(ws, 'ws:slide-change', {