feat: memory provider first work

This commit is contained in:
DarkSky
2022-12-29 23:05:19 +08:00
committed by DarkSky
parent 2bf6bf7ed8
commit 6ed2d467b7
10 changed files with 74 additions and 42 deletions

View File

@@ -1,4 +1,6 @@
import { test, expect } from '@playwright/test';
import { Workspace } from '@blocksuite/store';
import { getDataCenter } from './utils.js';
import 'fake-indexeddb/auto';
@@ -7,6 +9,11 @@ test('can init data center', async () => {
const dataCenter = await getDataCenter();
expect(dataCenter).toBeTruthy();
const workspace = await dataCenter.getWorkspace('test');
const workspace = await dataCenter.initWorkspace(
'test',
new Workspace({
room: 'test',
})
);
expect(workspace).toBeTruthy();
});