mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 12:55:00 +00:00
@@ -2,6 +2,7 @@ import '@toeverything/theme/style.css';
|
||||
import '@blocksuite/affine/gfx/pointer';
|
||||
|
||||
import type { EdgelessRootBlockComponent } from '@blocksuite/affine/blocks/root';
|
||||
import { DefaultTool } from '@blocksuite/affine/blocks/surface';
|
||||
import { ColorScheme } from '@blocksuite/affine/model';
|
||||
import { ThemeProvider } from '@blocksuite/affine/shared/services';
|
||||
import { beforeEach, describe, expect, test } from 'vitest';
|
||||
@@ -17,7 +18,7 @@ describe('theme service', () => {
|
||||
|
||||
edgeless = getDocRootBlock(doc, editor, 'edgeless');
|
||||
|
||||
edgeless.gfx.tool.setTool('default');
|
||||
edgeless.gfx.tool.setTool(DefaultTool);
|
||||
|
||||
const themeService = edgeless.gfx.std.get(ThemeProvider);
|
||||
themeService.theme$.value = ColorScheme.Light;
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
import type { EdgelessRootBlockComponent } from '@blocksuite/affine/blocks/root';
|
||||
import type { SurfaceBlockComponent } from '@blocksuite/affine/blocks/surface';
|
||||
import {
|
||||
DefaultTool,
|
||||
type SurfaceBlockComponent,
|
||||
} from '@blocksuite/affine/blocks/surface';
|
||||
import { beforeEach, describe, expect, test } from 'vitest';
|
||||
|
||||
import { click, drag, wait } from '../utils/common.js';
|
||||
@@ -18,7 +21,7 @@ describe('default tool', () => {
|
||||
surface = getSurface(window.doc, window.editor);
|
||||
service = edgeless.service;
|
||||
|
||||
edgeless.gfx.tool.setTool('default');
|
||||
edgeless.gfx.tool.setTool(DefaultTool);
|
||||
|
||||
return cleanup;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user