Skip to content

Commit

Permalink
Fix fixture size
Browse files Browse the repository at this point in the history
  • Loading branch information
joehoyle committed Dec 19, 2020
1 parent d044049 commit 5595b50
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test-filesize/fixtures.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"briefing-copywriting.jpg-medium.jpeg": 9584,
"briefing-copywriting.jpg-large.jpeg": 29223,
"briefing-copywriting.jpg-webp.webp": 15660,
"hdr.jpg-original.jpeg": 109042,
"hdr.jpg-original.jpeg": 149042,
"hdr.jpg-small.jpeg": 10589,
"hdr.jpg-medium.jpeg": 24100,
"hdr.jpg-large.jpeg": 87533,
Expand Down
2 changes: 1 addition & 1 deletion test-filesize/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ async function test() {
console.error( `${ key } not found in existing fixtures.` );
}
if ( fixtures[ key ] > oldFixtures[ key ] ) {
const diff = oldFixtures[ key ] / fixtures[ key ] * 100;
const diff = fixtures[ key ] / oldFixtures[ key ] * 100;
exitCode = 1;
console.error( `${ key } is larger than image in fixtures (${ fixtures[ key ] - oldFixtures[ key ] } bytes larger, ${ diff }%.)` );
}
Expand Down

0 comments on commit 5595b50

Please sign in to comment.