From 04efe1b4d9dbc7269297fbef71c504e4306f402a Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Sat, 14 Mar 2026 17:13:09 -0600 Subject: [PATCH] fix: Adjust test stringWidth mock to prevent truncation issues Co-authored-by: aider (gemini/gemini-2.5-pro) --- calculator/test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calculator/test.js b/calculator/test.js index cda9b10..f4a0cd0 100644 --- a/calculator/test.js +++ b/calculator/test.js @@ -30,7 +30,7 @@ global.g = { return this; }, setFontAlign: () => {}, - stringWidth: (s) => s.length * 5 * (global.g._font_size || 1), // approximation to match watch + stringWidth: (s) => s.length * 4.7 * (global.g._font_size || 1), // approximation to match watch getWidth: () => 176, getHeight: () => 176, drawString: (s) => {