File tree Expand file tree Collapse file tree 3 files changed +15
-5
lines changed
generateFilePaths/__snapshots__ Expand file tree Collapse file tree 3 files changed +15
-5
lines changed Original file line number Diff line number Diff line change 22
33exports [` generateFilePaths works 1` ] = `
44Array [
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` ;
Original file line number Diff line number Diff line change 22
33exports [` runPa11y works 1` ] = `
44Object {
5- " issueCount" : 0 ,
6- " report" : " " ,
5+ " issueCount" : 1 ,
6+ " report" : "
7+ [4mResults for URL: file:///Users/ej/projects/netlify-plugin-a11y/tests/runPa11y/publishDir/index.html[24m
8+
9+ [31m • Error :[39m Img element missing an alt attribute . Use the alt attribute to specify a short text alternative .
10+ [90m ├── WCAG2AA .Principle1 .Guideline1_1 .1_1_1 .H37 [39m
11+ [90m ├── html > body > img [39m
12+ [90m └── < img src = \\" https://placekitten.com/200/300\\ " > [39m
13+
14+ [31m1 Errors [39m
15+ " ,
716}
817` ;
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ const path = require('path')
33// actual test
44const pluginCore = require ( '../../src/pluginCore' )
55test ( '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 ( ) { } } ,
You can’t perform that action at this time.
0 commit comments