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: {