mirror of
https://github.com/lovell/sharp.git
synced 2025-07-13 04:20:12 +02:00
Tests: remove flaky font assertions
Probably due to Windows CI env font discovery
This commit is contained in:
parent
4490a93430
commit
789d4851ea
@ -48,9 +48,8 @@ describe('Text to image', () => {
|
|||||||
if (err) throw err;
|
if (err) throw err;
|
||||||
assert.strictEqual('png', info.format);
|
assert.strictEqual('png', info.format);
|
||||||
assert.strictEqual(3, info.channels);
|
assert.strictEqual(3, info.channels);
|
||||||
assert.ok(info.width > 10 && info.width <= maxWidth);
|
assert.ok(info.width <= maxWidth);
|
||||||
assert.ok(info.height > 10 && info.height <= maxHeight);
|
assert.ok(info.height <= maxHeight);
|
||||||
assert.ok(Math.abs(info.width - maxWidth) < 50);
|
|
||||||
assert.ok(info.textAutofitDpi > 0);
|
assert.ok(info.textAutofitDpi > 0);
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user