1
0
mirror of https://github.com/webslides/WebSlides.git synced 2025-08-12 08:04:14 +02:00

Ensuring tests pass again

Fixes #131
This commit is contained in:
Antonio Laguna
2019-02-19 19:06:13 +01:00
parent 87db22523c
commit fb5208218f
4 changed files with 8886 additions and 9849 deletions

View File

@@ -1,4 +1,3 @@
language: node_js
node_js:
- "6"
- "7"
- "10"

18725
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -43,7 +43,7 @@
"eslint-plugin-jest": "^21.1.0",
"extract-text-webpack-plugin": "^3.0.0",
"jest": "^22.0.4",
"node-sass": "^4.5.3",
"node-sass": "4.9.4",
"npm-run-all": "^4.1.1",
"postcss-loader": "^2.0.6",
"pre-commit": "^1.2.2",
@@ -80,7 +80,8 @@
]
},
"jest": {
"collectCoverage": true
"collectCoverage": true,
"testURL": "http://localhost/"
},
"pre-commit": [
"lint"

View File

@@ -29,7 +29,7 @@ test('Navigation plugin', () => {
expect(fakeCounter.tagName).toBe('SPAN');
expect(fakeCounter.childNodes.length).toBe(1);
expect(fakeCounter.childNodes[0].tagName).toBe('A');
expect(fakeCounter.childNodes[0].href).toBe('about:blank#');
expect(fakeCounter.childNodes[0].href).toBe('http://localhost/#');
expect(fakeCounter.childNodes[0].title).toBe('View all slides');
new Navigation(webslides);