Skip to content

Commit

Permalink
change valid matcher
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroki0525 committed Jan 11, 2024
1 parent f8701ca commit 5ce0359
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions packages/cli/src/notion/__tests__/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ describe("DandoriNotionCli", () => {
});

it("call generateDandoriNotionPages with database id", () => {
expect(mockGenerateDandoriNotionPages.mock.lastCall[1]).toContain({
expect(mockGenerateDandoriNotionPages.mock.lastCall[1]).toMatchObject({
databaseId,
});
});
Expand All @@ -81,7 +81,7 @@ describe("DandoriNotionCli", () => {
it("call generateDandoriNotionPages with databasePropertiesMap.name", () => {
expect(
mockGenerateDandoriNotionPages.mock.lastCall[1].databasePropertiesMap,
).toContain({
).toMatchObject({
name,
});
});
Expand All @@ -98,7 +98,7 @@ describe("DandoriNotionCli", () => {
it("call generateDandoriNotionPages with databasePropertiesMap.deadline", () => {
expect(
mockGenerateDandoriNotionPages.mock.lastCall[1].databasePropertiesMap,
).toContain({
).toMatchObject({
deadline,
});
});
Expand All @@ -115,7 +115,7 @@ describe("DandoriNotionCli", () => {
it("call generateDandoriNotionPages with databasePropertiesMap.status", () => {
expect(
mockGenerateDandoriNotionPages.mock.lastCall[1].databasePropertiesMap,
).toContain({
).toMatchObject({
status,
});
});
Expand All @@ -132,7 +132,7 @@ describe("DandoriNotionCli", () => {
it("call generateDandoriNotionPages with databasePropertiesMap.status.todo", () => {
expect(
mockGenerateDandoriNotionPages.mock.lastCall[1].databasePropertiesMap,
).toContain({
).toMatchObject({
"status.todo": statusTodo,
});
});
Expand All @@ -149,7 +149,7 @@ describe("DandoriNotionCli", () => {
it("call generateDandoriNotionPages with databasePropertiesMap.status.doing", () => {
expect(
mockGenerateDandoriNotionPages.mock.lastCall[1].databasePropertiesMap,
).toContain({
).toMatchObject({
"status.doing": statusDoing,
});
});
Expand All @@ -166,7 +166,7 @@ describe("DandoriNotionCli", () => {
it("call generateDandoriNotionPages with databasePropertiesMap.status.done", () => {
expect(
mockGenerateDandoriNotionPages.mock.lastCall[1].databasePropertiesMap,
).toContain({
).toMatchObject({
"status.done": statusDone,
});
});
Expand Down

0 comments on commit 5ce0359

Please sign in to comment.