Skip to content

Commit

Permalink
Tests: loosen threshold for affine rotate then extract
Browse files Browse the repository at this point in the history
Ignores rounding errors under Rosetta emulation
  • Loading branch information
lovell committed Jul 10, 2023
1 parent 2bb3ea8 commit d2f0fa8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/unit/extract.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ describe('Partial image extraction', function () {
if (err) throw err;
assert.strictEqual(380, info.width);
assert.strictEqual(280, info.height);
fixtures.assertSimilar(fixtures.expected('rotate-extract-45.jpg'), data, done);
fixtures.assertSimilar(fixtures.expected('rotate-extract-45.jpg'), data, { threshold: 7 }, done);
});
});

Expand Down

0 comments on commit d2f0fa8

Please sign in to comment.