Skip to content

Commit

Permalink
タグ入力コンポーネントのテストを更新し、全タグにカウント情報を追加しました。
Browse files Browse the repository at this point in the history
  • Loading branch information
ttizze committed Mar 4, 2025
1 parent 51d1fa4 commit ded2a04
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import "@testing-library/jest-dom";

describe("TagInput", () => {
const mockInitialTags = [{ id: 1, name: "initial" }];
const mockAllTags = [
{ id: 1, name: "initial" },
{ id: 2, name: "test" },
const mockAllTagsWithCount = [
{ id: 1, name: "initial", _count: { pages: 1 } },
{ id: 2, name: "test", _count: { pages: 2 } },
];
const mockPageId = 1;

Expand All @@ -25,7 +25,7 @@ describe("TagInput", () => {
render(
<TagInput
initialTags={mockInitialTags}
allTags={mockAllTags}
allTagsWithCount={mockAllTagsWithCount}
pageId={mockPageId}
/>,
);
Expand Down Expand Up @@ -58,7 +58,7 @@ describe("TagInput", () => {
{ id: 4, name: "tag4" },
{ id: 5, name: "tag5" },
]}
allTags={mockAllTags}
allTagsWithCount={mockAllTagsWithCount}
pageId={mockPageId}
/>,
);
Expand All @@ -72,7 +72,7 @@ describe("TagInput", () => {
render(
<TagInput
initialTags={mockInitialTags}
allTags={mockAllTags}
allTagsWithCount={mockAllTagsWithCount}
pageId={mockPageId}
/>,
);
Expand All @@ -91,7 +91,7 @@ describe("TagInput", () => {
render(
<TagInput
initialTags={mockInitialTags}
allTags={mockAllTags}
allTagsWithCount={mockAllTagsWithCount}
pageId={mockPageId}
/>,
);
Expand Down

0 comments on commit ded2a04

Please sign in to comment.