Skip to content

Commit

Permalink
fix: docs and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroki0525 committed Jan 22, 2024
1 parent 81092a4 commit bc36978
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/cli/src/notion/__tests__/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ describe("DandoriNotionCli", () => {
});

describe("with --name option", () => {
const name = "Name";
const name = "title";

beforeEach(async () => {
loadProcessArgv(["--name", name]);
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
4 changes: 2 additions & 2 deletions packages/ui/src/__tests__/notion.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -141,7 +141,7 @@ describe("generateDandoriNotionPages", () => {
expect(
findPagePropertiesMockParam(withAllPropsTaskName).properties,
).toMatchObject({
Name: {
title: {
title: [
{
text: {
Expand Down

0 comments on commit bc36978

Please sign in to comment.