mirror of
https://github.com/lovell/sharp.git
synced 2025-07-09 10:30:15 +02:00
Tests: arm64 requires slight threshold increase
This commit is contained in:
parent
968d9d7008
commit
02e0c2dfc9
@ -527,7 +527,7 @@ describe('Image metadata', function () {
|
|||||||
sharp(fixtures.inputJpg)
|
sharp(fixtures.inputJpg)
|
||||||
.resize(64)
|
.resize(64)
|
||||||
.withMetadata({ icc: 'cmyk' })
|
.withMetadata({ icc: 'cmyk' })
|
||||||
.toFile(output, function (err, info) {
|
.toFile(output, function (err) {
|
||||||
if (err) throw err;
|
if (err) throw err;
|
||||||
sharp(output).metadata(function (err, metadata) {
|
sharp(output).metadata(function (err, metadata) {
|
||||||
if (err) throw err;
|
if (err) throw err;
|
||||||
@ -543,7 +543,7 @@ describe('Image metadata', function () {
|
|||||||
assert.strictEqual('Relative', profile.intent);
|
assert.strictEqual('Relative', profile.intent);
|
||||||
assert.strictEqual('Printer', profile.deviceClass);
|
assert.strictEqual('Printer', profile.deviceClass);
|
||||||
});
|
});
|
||||||
fixtures.assertSimilar(output, fixtures.expected('icc-cmyk.jpg'), { threshold: 0 }, done);
|
fixtures.assertSimilar(output, fixtures.expected('icc-cmyk.jpg'), { threshold: 1 }, done);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user