fix: Adjust test stringWidth mock for display precision
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;
|
||||
},
|
||||
setFontAlign: () => {},
|
||||
stringWidth: (s) => s.length * 8 * (global.g._font_size || 1), // simple approximation
|
||||
stringWidth: (s) => s.length * 5 * (global.g._font_size || 1), // approximation to match watch
|
||||
getWidth: () => 176,
|
||||
getHeight: () => 176,
|
||||
drawString: (s) => {
|
||||
|
||||
Reference in New Issue
Block a user