From bc36978e91f5915ac391cf56ba05de97369f68ec Mon Sep 17 00:00:00 2001 From: Hiroki Miyaji Date: Mon, 22 Jan 2024 22:53:06 +0900 Subject: [PATCH] fix: docs and tests --- packages/cli/src/notion/__tests__/index.test.ts | 2 +- packages/ui/README.md | 2 +- packages/ui/src/__tests__/notion.test.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/cli/src/notion/__tests__/index.test.ts b/packages/cli/src/notion/__tests__/index.test.ts index 40d23a0..b43b6e3 100644 --- a/packages/cli/src/notion/__tests__/index.test.ts +++ b/packages/cli/src/notion/__tests__/index.test.ts @@ -71,7 +71,7 @@ describe("DandoriNotionCli", () => { }); describe("with --name option", () => { - const name = "Name"; + const name = "title"; beforeEach(async () => { loadProcessArgv(["--name", name]); diff --git a/packages/ui/README.md b/packages/ui/README.md index 0a4e834..4b28451 100644 --- a/packages/ui/README.md +++ b/packages/ui/README.md @@ -131,7 +131,7 @@ For example, if the url is `https://www.notion.so/myworkspace/1234567890?v=123`, * databasePropertiesMap -**default is `{ name: 'Name' }`** +**default is `{ name: 'title' }`** The map which key is defined by dandori and value is your notion database properties. diff --git a/packages/ui/src/__tests__/notion.test.ts b/packages/ui/src/__tests__/notion.test.ts index 23d59c1..40471d2 100644 --- a/packages/ui/src/__tests__/notion.test.ts +++ b/packages/ui/src/__tests__/notion.test.ts @@ -92,7 +92,7 @@ describe("generateDandoriNotionPages", () => { const findPagePropertiesMockParam = ( taskName: string, - nameProp: string = "Name", + nameProp: string = "title", ) => { const params = (client.pages.create as Mock).mock.calls.flat(); return params.find( @@ -141,7 +141,7 @@ describe("generateDandoriNotionPages", () => { expect( findPagePropertiesMockParam(withAllPropsTaskName).properties, ).toMatchObject({ - Name: { + title: { title: [ { text: {