mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 13:25:12 +00:00
refactor(editor): rename presets to integration test (#10340)
This commit is contained in:
@@ -4,25 +4,6 @@ vi.mock('lottie-web', () => ({
|
||||
default: {},
|
||||
}));
|
||||
|
||||
vi.mock('@blocksuite/affine/presets', () => ({
|
||||
AffineEditorContainer: vi.fn(),
|
||||
BiDirectionalLinkPanel: vi.fn(),
|
||||
DocMetaTags: vi.fn(),
|
||||
DocTitle: vi.fn(),
|
||||
EdgelessEditor: vi.fn(),
|
||||
PageEditor: vi.fn(),
|
||||
AIChatBlockSchema: {
|
||||
version: 1,
|
||||
model: {
|
||||
version: 1,
|
||||
flavour: 'affine:embed-ai-chat',
|
||||
role: 'content',
|
||||
children: [],
|
||||
},
|
||||
},
|
||||
AIChatBlockSpec: {},
|
||||
}));
|
||||
|
||||
if (typeof window !== 'undefined' && HTMLCanvasElement) {
|
||||
// @ts-expect-error allow vitest global mock
|
||||
HTMLCanvasElement.prototype.getContext = () => {
|
||||
|
||||
Reference in New Issue
Block a user