mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
fix(editor): remove redundant subtraction (#11781)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user