Skip to content

Commit

Permalink
Tests: expand expected range of flaky text test
Browse files Browse the repository at this point in the history
Cross-platform font discovery is complex
  • Loading branch information
lovell committed Nov 4, 2023
1 parent 12fd512 commit ab8a4ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/unit/text.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit ab8a4ed

Please sign in to comment.