fix(editor): remove redundant subtraction (#11781)

This commit is contained in:
fundon
2025-04-18 03:53:51 +00:00
parent 445d7b47b8
commit 1ae36d4b3e
+1 -1
View File
@@ -962,7 +962,7 @@ export async function assertEdgelessColorSameWithHexColor(
edgelessColor: string, edgelessColor: string,
hexColor: `#${string}` hexColor: `#${string}`
) { ) {
const themeColor = edgelessColor.startsWith('---') const themeColor = edgelessColor.startsWith('--')
? await getCurrentThemeCSSPropertyValue(page, edgelessColor) ? await getCurrentThemeCSSPropertyValue(page, edgelessColor)
: edgelessColor; : edgelessColor;
expect(themeColor).toBeTruthy(); expect(themeColor).toBeTruthy();