From dba26f52f4990c2e7c9b5838d759a9480fbab419 Mon Sep 17 00:00:00 2001 From: tzhangchi Date: Tue, 3 Jan 2023 22:45:51 +0800 Subject: [PATCH] test: improve the describe name --- packages/data-center/tests/attachment.spec.ts | 2 +- packages/data-center/tests/auth.spec.ts | 2 +- packages/data-center/tests/cloud-sync.spec.ts | 4 +++- packages/data-center/tests/collaborate.spec.ts | 2 +- packages/data-center/tests/import-export.spec.ts | 2 +- packages/data-center/tests/init.spec.ts | 2 +- .../tests/{ permission.spec.ts => permission.spec.ts} | 2 +- packages/data-center/tests/search.spec.ts | 4 ++-- packages/data-center/tests/share.spec.ts | 2 +- packages/data-center/tests/workspace.spec.ts | 2 +- 10 files changed, 13 insertions(+), 11 deletions(-) rename packages/data-center/tests/{ permission.spec.ts => permission.spec.ts} (92%) diff --git a/packages/data-center/tests/attachment.spec.ts b/packages/data-center/tests/attachment.spec.ts index 61343d9685..8a40c645c9 100644 --- a/packages/data-center/tests/attachment.spec.ts +++ b/packages/data-center/tests/attachment.spec.ts @@ -4,7 +4,7 @@ import { getDataCenter } from './utils.js'; import 'fake-indexeddb/auto'; -test.describe('attachment', () => { +test.describe('Attachment', () => { test('upload blob', async () => {}); test('get blob', async () => {}); diff --git a/packages/data-center/tests/auth.spec.ts b/packages/data-center/tests/auth.spec.ts index fd7e56d78c..63b35c0343 100644 --- a/packages/data-center/tests/auth.spec.ts +++ b/packages/data-center/tests/auth.spec.ts @@ -4,7 +4,7 @@ import { getDataCenter } from './utils.js'; import 'fake-indexeddb/auto'; -test.describe('auth', () => { +test.describe('Auth', () => { test('signin', async () => {}); test('signout', async () => {}); diff --git a/packages/data-center/tests/cloud-sync.spec.ts b/packages/data-center/tests/cloud-sync.spec.ts index 298c9a4160..5e427b9890 100644 --- a/packages/data-center/tests/cloud-sync.spec.ts +++ b/packages/data-center/tests/cloud-sync.spec.ts @@ -4,7 +4,7 @@ import { getDataCenter } from './utils.js'; import 'fake-indexeddb/auto'; -test.describe('cloud-sync', () => { +test.describe('Cloud Sync', () => { test('get cloud the sync flag of workspace ', async () => {}); test('enable [cloud sync feature]', async () => {}); @@ -18,4 +18,6 @@ test.describe('cloud-sync', () => { test('cloud sync is completed', async () => {}); test('cloud sync is error', async () => {}); + + test('cloud storage is right', async () => {}); }); diff --git a/packages/data-center/tests/collaborate.spec.ts b/packages/data-center/tests/collaborate.spec.ts index f28bd9e841..72cd5bdb23 100644 --- a/packages/data-center/tests/collaborate.spec.ts +++ b/packages/data-center/tests/collaborate.spec.ts @@ -4,7 +4,7 @@ import { getDataCenter } from './utils.js'; import 'fake-indexeddb/auto'; -test.describe('collaborate', () => { +test.describe('Collaborate', () => { test('collaborate editor content', async () => {}); test('collaborate workspace name', async () => {}); diff --git a/packages/data-center/tests/import-export.spec.ts b/packages/data-center/tests/import-export.spec.ts index 416150ffbc..20563e3afb 100644 --- a/packages/data-center/tests/import-export.spec.ts +++ b/packages/data-center/tests/import-export.spec.ts @@ -4,7 +4,7 @@ import { getDataCenter } from './utils.js'; import 'fake-indexeddb/auto'; -test.describe('import export', () => { +test.describe('Import Export Workspace', () => { test('import workspace', async () => {}); test('export workspace', async () => {}); diff --git a/packages/data-center/tests/init.spec.ts b/packages/data-center/tests/init.spec.ts index 30ee1cd0f8..719574fd3b 100644 --- a/packages/data-center/tests/init.spec.ts +++ b/packages/data-center/tests/init.spec.ts @@ -4,7 +4,7 @@ import { getDataCenter } from './utils.js'; import 'fake-indexeddb/auto'; -test.describe('init data center', () => { +test.describe('Init Data Center', () => { test('init', async () => { const dataCenter = await getDataCenter(); expect(dataCenter).toBeTruthy(); diff --git a/packages/data-center/tests/ permission.spec.ts b/packages/data-center/tests/permission.spec.ts similarity index 92% rename from packages/data-center/tests/ permission.spec.ts rename to packages/data-center/tests/permission.spec.ts index 82cd054483..dc43e9a920 100644 --- a/packages/data-center/tests/ permission.spec.ts +++ b/packages/data-center/tests/permission.spec.ts @@ -4,7 +4,7 @@ import { getDataCenter } from './utils.js'; import 'fake-indexeddb/auto'; -test.describe('share', () => { +test.describe('Permission', () => { test('get the public of workspace', async () => {}); test('make workspace public', async () => {}); diff --git a/packages/data-center/tests/search.spec.ts b/packages/data-center/tests/search.spec.ts index 5973fb880c..b3da112c60 100644 --- a/packages/data-center/tests/search.spec.ts +++ b/packages/data-center/tests/search.spec.ts @@ -4,6 +4,6 @@ import { getDataCenter } from './utils.js'; import 'fake-indexeddb/auto'; -test.describe('search', () => { - test('search service', async () => {}); +test.describe('Search', () => { + test('search result', async () => {}); }); diff --git a/packages/data-center/tests/share.spec.ts b/packages/data-center/tests/share.spec.ts index 61856b6ab6..d4d6de1001 100644 --- a/packages/data-center/tests/share.spec.ts +++ b/packages/data-center/tests/share.spec.ts @@ -4,7 +4,7 @@ import { getDataCenter } from './utils.js'; import 'fake-indexeddb/auto'; -test.describe('share', () => { +test.describe('Share', () => { test('add(invite) member by email', async () => {}); test('accept invite member link', async () => {}); diff --git a/packages/data-center/tests/workspace.spec.ts b/packages/data-center/tests/workspace.spec.ts index 3278fe10e4..909152c78d 100644 --- a/packages/data-center/tests/workspace.spec.ts +++ b/packages/data-center/tests/workspace.spec.ts @@ -4,7 +4,7 @@ import { getDataCenter } from './utils.js'; import 'fake-indexeddb/auto'; -test.describe('workspace', () => { +test.describe('Workspace', () => { test('list workspaces', async () => { const dataCenter = await getDataCenter(); await dataCenter.clear();