Skip to content
This repository has been archived by the owner on May 6, 2020. It is now read-only.

Commit

Permalink
Increase img ratio tolerance
Browse files Browse the repository at this point in the history
  • Loading branch information
ithinkihaveacat committed Sep 24, 2018
1 parent 57dbe0d commit 19bbb4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion amp-story/linter/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ const testSingleAmpImg = (
const actualWidth = width;
const actualRatio = Math.floor(actualWidth * 100 / actualHeight) / 100;
const expectedRatio = Math.floor(expectedWidth * 100 / expectedHeight) / 100;
if (Math.abs(actualRatio - expectedRatio) > 0.01) {
if (Math.abs(actualRatio - expectedRatio) > 0.015) {
const actualString = `${actualWidth}/${actualHeight} = ${actualRatio}`;
const expectedString = `${expectedWidth}/${expectedHeight} = ${expectedRatio}`;
return FAIL(`[${src}]: actual ratio [${actualString}] does not match specified [${expectedString}]`);
Expand Down

0 comments on commit 19bbb4e

Please sign in to comment.