mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-16 05:47:09 +08:00
feat: add outline plugin (#3624)
Co-authored-by: codert <codert.sn@gmail.com>
This commit is contained in:
@@ -19,36 +19,20 @@ test('plugin should exist', async ({ page }) => {
|
||||
// @ts-expect-error
|
||||
return window.__pluginPackageJson__;
|
||||
});
|
||||
expect(packageJson).toEqual([
|
||||
{
|
||||
name: '@affine/bookmark-plugin',
|
||||
const plugins = [
|
||||
'@affine/bookmark-plugin',
|
||||
'@affine/copilot-plugin',
|
||||
'@affine/hello-world-plugin',
|
||||
'@affine/image-preview-plugin',
|
||||
'@affine/vue-hello-world-plugin',
|
||||
'@affine/outline-plugin',
|
||||
];
|
||||
expect(packageJson).toEqual(
|
||||
plugins.map(name => ({
|
||||
name,
|
||||
version: expect.any(String),
|
||||
description: expect.any(String),
|
||||
affinePlugin: expect.anything(),
|
||||
},
|
||||
{
|
||||
name: '@affine/copilot-plugin',
|
||||
version: expect.any(String),
|
||||
description: expect.any(String),
|
||||
affinePlugin: expect.anything(),
|
||||
},
|
||||
{
|
||||
name: '@affine/hello-world-plugin',
|
||||
version: expect.any(String),
|
||||
description: expect.any(String),
|
||||
affinePlugin: expect.anything(),
|
||||
},
|
||||
{
|
||||
name: '@affine/image-preview-plugin',
|
||||
version: expect.any(String),
|
||||
description: expect.any(String),
|
||||
affinePlugin: expect.anything(),
|
||||
},
|
||||
{
|
||||
name: '@affine/vue-hello-world-plugin',
|
||||
version: expect.any(String),
|
||||
description: expect.any(String),
|
||||
affinePlugin: expect.anything(),
|
||||
},
|
||||
]);
|
||||
}))
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user