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

This commit is contained in:
fundon
2025-04-18 03:53:51 +00:00
parent 445d7b47b8
commit 1ae36d4b3e

View File

@@ -962,7 +962,7 @@ export async function assertEdgelessColorSameWithHexColor(
edgelessColor: string,
hexColor: `#${string}`
) {
const themeColor = edgelessColor.startsWith('---')
const themeColor = edgelessColor.startsWith('--')
? await getCurrentThemeCSSPropertyValue(page, edgelessColor)
: edgelessColor;
expect(themeColor).toBeTruthy();