Skip to content

Commit f17bcd9

Browse files
committed
Chore: update test snapshots
1 parent 17b261e commit f17bcd9

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

tests/generateFilePaths/__snapshots__/this.test.js.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
exports[`generateFilePaths works 1`] = `
44
Array [
5-
"/Users/ej/projects/plugin-a11y/tests/generateFilePaths/publishDir/blog/post1.html",
6-
"/Users/ej/projects/plugin-a11y/tests/generateFilePaths/publishDir/blog/post2.html",
7-
"/Users/ej/projects/plugin-a11y/tests/generateFilePaths/publishDir/about.html",
5+
"/Users/ej/projects/netlify-plugin-a11y/tests/generateFilePaths/publishDir/blog/post1.html",
6+
"/Users/ej/projects/netlify-plugin-a11y/tests/generateFilePaths/publishDir/blog/post2.html",
7+
"/Users/ej/projects/netlify-plugin-a11y/tests/generateFilePaths/publishDir/about.html",
88
]
99
`;

tests/runPa11y/__snapshots__/this.test.js.snap

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,16 @@
22

33
exports[`runPa11y works 1`] = `
44
Object {
5-
"issueCount": 0,
6-
"report": "",
5+
"issueCount": 1,
6+
"report": "
7+
Results for URL: file:///Users/ej/projects/netlify-plugin-a11y/tests/runPa11y/publishDir/index.html
8+
9+
Error: Img element missing an alt attribute. Use the alt attribute to specify a short text alternative.
10+
├── WCAG2AA.Principle1.Guideline1_1.1_1_1.H37
11+
├── html > body > img
12+
└── <img src=\\"https://placekitten.com/200/300\\">
13+
14+
1 Errors
15+
",
716
}
817
`;

tests/runPa11y/this.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ const path = require('path')
33
// actual test
44
const pluginCore = require('../../src/pluginCore')
55
test('runPa11y works', async () => {
6+
console.log([path.join(__dirname, 'publishDir/index.html')])
67
const results = await pluginCore.runPa11y({
78
htmlFilePaths: [path.join(__dirname, 'publishDir/index.html')],
89
build: { failBuild() {} },

0 commit comments

Comments
 (0)