Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

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

fundon1ae36d4b3e5a
diff --git a/tests/blocksuite/e2e/utils/asserts.ts b/tests/blocksuite/e2e/utils/asserts.ts
index 8b112e2cb9..942ede1c09 100644
--- a/tests/blocksuite/e2e/utils/asserts.ts
+++ b/tests/blocksuite/e2e/utils/asserts.ts
@@ -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();