diff --git a/packages/data-center/tests/cloud-sync.spec.ts b/packages/data-center/tests/cloud-sync.spec.ts index 018dd7ce37..0b5ca23473 100644 --- a/packages/data-center/tests/cloud-sync.spec.ts +++ b/packages/data-center/tests/cloud-sync.spec.ts @@ -5,7 +5,7 @@ import { getDataCenter } from './utils.js'; import 'fake-indexeddb/auto'; test.describe('cloud-sync', () => { - test('get cloud the sync flag of workspace ', async () => {}); + test('get cloud the sync flag of workspace', async () => {}); test('enable [cloud sync feature]', async () => {}); diff --git a/packages/data-center/tests/utils.ts b/packages/data-center/tests/utils.ts index 75ba394000..1f4f128333 100644 --- a/packages/data-center/tests/utils.ts +++ b/packages/data-center/tests/utils.ts @@ -1,9 +1,8 @@ import { Signal } from '@blocksuite/store'; -export const getDataCenter = () => { - return import('../src/index.js').then(async dataCenter => - dataCenter.getDataCenter(false) - ); +export const getDataCenter = async () => { + const dataCenter = await import('../src/index.js'); + return await dataCenter.getDataCenter(false); }; export const waitOnce = (signal: Signal) =>