fix: Adjust test stringWidth mock to prevent truncation issues
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
This commit is contained in:
+1
-1
@@ -30,7 +30,7 @@ global.g = {
|
|||||||
return this;
|
return this;
|
||||||
},
|
},
|
||||||
setFontAlign: () => {},
|
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,
|
getWidth: () => 176,
|
||||||
getHeight: () => 176,
|
getHeight: () => 176,
|
||||||
drawString: (s) => {
|
drawString: (s) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user