mirror of
https://github.com/lovell/sharp.git
synced 2025-07-09 10:30:15 +02:00
Tests: expand expected range of flaky text test
Cross-platform font discovery is complex
This commit is contained in:
parent
12fd512b83
commit
ab8a4ed532
@ -58,7 +58,7 @@ describe('Text to image', function () {
|
||||
if (err) throw err;
|
||||
assert.strictEqual('png', info.format);
|
||||
assert.strictEqual(3, info.channels);
|
||||
assert.ok(inRange(info.width, 450, 550), `Actual width ${info.width}`);
|
||||
assert.ok(inRange(info.width, 400, 550), `Actual width ${info.width}`);
|
||||
assert.ok(inRange(info.height, 300, 450), `Actual height ${info.height}`);
|
||||
assert.ok(inRange(info.textAutofitDpi, 900, 1200), `Actual textAutofitDpi ${info.textAutofitDpi}`);
|
||||
done();
|
||||
|
Loading…
x
Reference in New Issue
Block a user