Skip to content

Commit

Permalink
Adjust test logs
Browse files Browse the repository at this point in the history
  • Loading branch information
LitoMore committed Sep 4, 2024
1 parent 2c64a31 commit ca635a0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/viewbox.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,12 @@ const result = Object.values(si).map(checkAutoViewboxPath);
const iconsFailed = result.filter((r) => r.fail);

console.log('Top 10 slow icons:');
console.table(result.sort((a, b) => b.time - a.time).slice(0, 10));
console.table(
result.sort((a, b) => b.time - a.time).slice(0, 10).map((x) => ({
title: x.title,
['time (ms)']: x.time,
})),
);

if (iconsFailed.length > 0) {
console.log(`Failed icons:`);
Expand Down

0 comments on commit ca635a0

Please sign in to comment.