mirror of
https://github.com/lovell/sharp.git
synced 2025-07-12 20:10:13 +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;
|
||||
assert.strictEqual('png', info.format);
|
||||
assert.strictEqual(3, info.channels);
|
||||
assert.ok(info.width > 10 && info.width <= maxWidth);
|
||||
assert.ok(info.height > 10 && info.height <= maxHeight);
|
||||
assert.ok(Math.abs(info.width - maxWidth) < 50);
|
||||
assert.ok(info.width <= maxWidth);
|
||||
assert.ok(info.height <= maxHeight);
|
||||
assert.ok(info.textAutofitDpi > 0);
|
||||
done();
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user