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