mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-25 22:38:56 +08:00
chore: typo fix
This commit is contained in:
@@ -5,7 +5,7 @@ import { getDataCenter } from './utils.js';
|
|||||||
import 'fake-indexeddb/auto';
|
import 'fake-indexeddb/auto';
|
||||||
|
|
||||||
test.describe('cloud-sync', () => {
|
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 () => {});
|
test('enable [cloud sync feature]', async () => {});
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
import { Signal } from '@blocksuite/store';
|
import { Signal } from '@blocksuite/store';
|
||||||
|
|
||||||
export const getDataCenter = () => {
|
export const getDataCenter = async () => {
|
||||||
return import('../src/index.js').then(async dataCenter =>
|
const dataCenter = await import('../src/index.js');
|
||||||
dataCenter.getDataCenter(false)
|
return await dataCenter.getDataCenter(false);
|
||||||
);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export const waitOnce = <T>(signal: Signal<T>) =>
|
export const waitOnce = <T>(signal: Signal<T>) =>
|
||||||
|
|||||||
Reference in New Issue
Block a user