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.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
fix: sort plugin list in test (#4289)
Whitewater56e653140b95
diff --git a/tests/affine-plugin/e2e/basic.spec.ts b/tests/affine-plugin/e2e/basic.spec.tsindex b6004dff60..b524670421 100644--- a/tests/affine-plugin/e2e/basic.spec.ts+++ b/tests/affine-plugin/e2e/basic.spec.ts@@ -17,7 +17,9 @@ test('plugin should exist', async ({ page }) => {await page.waitForTimeout(50);const packageJson = await page.evaluate(() => {// @ts-expect-error- return window.__pluginPackageJson__;+ return window.__pluginPackageJson__.sort((a, b) =>+ a.name.localeCompare(b.name)+ );});const plugins = ['@affine/bookmark-plugin',@@ -28,11 +30,13 @@ test('plugin should exist', async ({ page }) => {'@affine/outline-plugin',];expect(packageJson).toEqual(- plugins.map(name => ({- name,- version: expect.any(String),- description: expect.any(String),- affinePlugin: expect.anything(),- }))+ plugins+ .map(name => ({+ name,+ version: expect.any(String),+ description: expect.any(String),+ affinePlugin: expect.anything(),+ }))+ .sort((a, b) => a.name.localeCompare(b.name)));});