Skip to content

Commit 65b002a

Browse files
committed
Update Pa11y output
1 parent 1610db3 commit 65b002a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

bin/pa11y.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const EXT = '.html';
3232
*/
3333
const a11y = async (file = `${process.env.PWD}/dist/index.html`) => {
3434
if (!args.nondescript && !args.silent) {
35-
cnsl.lint(`${alerts.accessible} Running Pa11y CI on ${alerts.str.path(file)}`);
35+
cnsl.lint(`${alerts.loading} Running Pa11y CI on ${alerts.str.path(file)}`);
3636
}
3737

3838
let results = await pa11y(file, config);
@@ -41,7 +41,7 @@ const a11y = async (file = `${process.env.PWD}/dist/index.html`) => {
4141
if (args.nondescript || args.silent) {
4242
cnsl.lint(`${alerts.str.path(results.pageUrl)}`);
4343
} else {
44-
cnsl.lint(`${alerts.accessible} Pa11y suggestions for ${alerts.str.path(results.pageUrl)}`);
44+
cnsl.lint(`${alerts.error} Pa11y suggestions for ${alerts.str.path(results.pageUrl)}`);
4545
}
4646

4747
results.issues.forEach(issue => {
@@ -55,7 +55,7 @@ const a11y = async (file = `${process.env.PWD}/dist/index.html`) => {
5555
});
5656
} else {
5757
if (!args.nondescript && !args.silent) {
58-
cnsl.lint(`${alerts.accessible} No Pa11y suggestions for ${alerts.str.path(results.pageUrl)}`);
58+
cnsl.lint(`${alerts.success} No Pa11y suggestions for ${alerts.str.path(results.pageUrl)}`);
5959
}
6060
}
6161

config/alerts.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ module.exports = {
3131
compression: emoji.get('compression') + ' ',
3232
package: emoji.get('package'),
3333
accessible: emoji.get('person_doing_cartwheel'),
34+
loading: emoji.get('hourglass_flowing_sand'),
3435

3536
/**
3637
* Chalk configuration. Refer to the package for details on the available

0 commit comments

Comments
 (0)