mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 13:25:12 +00:00
feat: memory provider first work
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user