mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-12-25 22:53:34 +03:00
make error friendlier
This commit is contained in:
parent
8b9eb45c9a
commit
c9dcdf342b
@ -16,5 +16,8 @@ jq -r -f script/axe-report.jq "$JSON_FILE"
|
||||
NUM_ERRORS="$(jq '.violations | map(.nodes | length) | add' "$JSON_FILE")"
|
||||
TARGET_ERRORS=155
|
||||
if test "$NUM_ERRORS" -ne "$TARGET_ERRORS"; then
|
||||
echo "got $NUM_ERRORS, but expected $TARGET_ERRORS. Check out ${0:-} and change the count if it went down."
|
||||
echo "got $NUM_ERRORS errors, but expected $TARGET_ERRORS."
|
||||
echo
|
||||
echo 'If it went down, hooray!'
|
||||
echo "Check out ${0:-} and change the count to the reported value above."
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user