Tests: add debug to flaky text test

This commit is contained in:
Lovell Fuller 2023-11-03 11:42:57 +00:00
parent 839c92bf3d
commit 7caaa8e22b

View File

@ -59,8 +59,8 @@ describe('Text to image', function () {
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 <= maxWidth); assert.ok(info.width <= maxWidth, `Actual width ${info.width}`);
assert.ok(info.height <= maxHeight); assert.ok(info.height <= maxHeight, `Actual height ${info.height}`);
assert.ok(info.textAutofitDpi > 0); assert.ok(info.textAutofitDpi > 0);
done(); done();
}); });