mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-08 01:39:22 +08:00
fix(core): fix unit test (#6040)
This commit is contained in:
@@ -6,6 +6,11 @@ vi.mock('lottie-web', () => ({
|
|||||||
|
|
||||||
vi.mock('@blocksuite/presets', () => ({
|
vi.mock('@blocksuite/presets', () => ({
|
||||||
AffineEditorContainer: vi.fn(),
|
AffineEditorContainer: vi.fn(),
|
||||||
|
BiDirectionalLinkPanel: vi.fn(),
|
||||||
|
DocMetaTags: vi.fn(),
|
||||||
|
DocTitle: vi.fn(),
|
||||||
|
EdgelessEditor: vi.fn(),
|
||||||
|
PageEditor: vi.fn(),
|
||||||
}));
|
}));
|
||||||
|
|
||||||
if (typeof window !== 'undefined' && HTMLCanvasElement) {
|
if (typeof window !== 'undefined' && HTMLCanvasElement) {
|
||||||
|
|||||||
Reference in New Issue
Block a user