mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 12:28:42 +00:00
20 lines
450 B
TypeScript
20 lines
450 B
TypeScript
import { test, expect } from '@playwright/test';
|
|
import { Workspace } from '@blocksuite/store';
|
|
|
|
import { getDataCenter } from './utils.js';
|
|
|
|
import 'fake-indexeddb/auto';
|
|
|
|
test('can init data center', async () => {
|
|
const dataCenter = await getDataCenter();
|
|
expect(dataCenter).toBeTruthy();
|
|
|
|
const workspace = await dataCenter.initWorkspace(
|
|
'test',
|
|
new Workspace({
|
|
room: 'test',
|
|
})
|
|
);
|
|
expect(workspace).toBeTruthy();
|
|
});
|