Tests: remove flaky font assertions

Probably due to Windows CI env font discovery
This commit is contained in:
Lovell Fuller 2022-11-15 10:08:43 +00:00
parent 4490a93430
commit 789d4851ea

View File

@ -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();
});