mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-25 22:38:56 +08:00
feat: first test for data center
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
import { test, expect } from '@playwright/test';
|
||||
import { getDataCenter } from './utils.js';
|
||||
|
||||
test('can init data center', async () => {
|
||||
const dataCenter = await getDataCenter();
|
||||
|
||||
expect(dataCenter).toBeTruthy();
|
||||
});
|
||||
@@ -0,0 +1,4 @@
|
||||
export const getDataCenter = () =>
|
||||
import('../src/data-center.js').then(async dataCenter =>
|
||||
dataCenter.getDataCenter()
|
||||
);
|
||||
Reference in New Issue
Block a user