From 7caaa8e22b05b13683cad9c727b168f8c6ba1de9 Mon Sep 17 00:00:00 2001 From: Lovell Fuller Date: Fri, 3 Nov 2023 11:42:57 +0000 Subject: [PATCH] Tests: add debug to flaky text test --- test/unit/text.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit/text.js b/test/unit/text.js index e37fafc7..ca8a4698 100644 --- a/test/unit/text.js +++ b/test/unit/text.js @@ -59,8 +59,8 @@ describe('Text to image', function () { if (err) throw err; assert.strictEqual('png', info.format); assert.strictEqual(3, info.channels); - assert.ok(info.width <= maxWidth); - assert.ok(info.height <= maxHeight); + assert.ok(info.width <= maxWidth, `Actual width ${info.width}`); + assert.ok(info.height <= maxHeight, `Actual height ${info.height}`); assert.ok(info.textAutofitDpi > 0); done(); });