Skip to content

Commit

Permalink
tests: exclude audit helpText from 'yarn diff:sample-json' assertion (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish authored Apr 13, 2018
1 parent 0db69e5 commit 48120d0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lighthouse-core/scripts/cleanup-LHR-for-diff.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,8 @@ writeFileSync(filename, cleanAndFormatLHR(data), 'utf8');
function cleanAndFormatLHR(lhrString) {
const lhr = JSON.parse(lhrString);
delete lhr.timing;
for (const auditResult of Object.values(lhr.audits)) {
auditResult.helpText = '**Excluded from diff**';
}
return JSON.stringify(lhr, null, 2);
}

0 comments on commit 48120d0

Please sign in to comment.