Skip to content

Instantly share code, notes, and snippets.

@kahunacohen
Created October 29, 2018 09:21
Show Gist options
  • Save kahunacohen/5e30a95d41a33b1b365bfaaefb9c94df to your computer and use it in GitHub Desktop.
Save kahunacohen/5e30a95d41a33b1b365bfaaefb9c94df to your computer and use it in GitHub Desktop.
@patrickhulce
Copy link

If we were writing this audit we would probably return some basic info about all the links in the buttons, and then the audit would fail if the artifact had length > 0. The nice thing about this approach of splitting audit/gatherer is that the audit then has some helpful debug information to show when it's failing, i.e. you can give the textContent/url of the link that's failing so the dev knows where to go to fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment