diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2022-05-04 11:27:42 +0000 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2022-05-05 07:27:42 +0000 |
commit | 823bad63384de90c11653f0afa253cc5d0e19239 (patch) | |
tree | 8c4af9c3cdf74d32264d693f081266b650fede03 /test/console/components | |
parent | 65ddd365e407989f3c1722a3ba811492b32e692f (diff) |
Rename completion fields
Diffstat (limited to 'test/console/components')
-rw-r--r-- | test/console/components/console/Completion.test.tsx | 14 | ||||
-rw-r--r-- | test/console/components/console/CompletionItem.test.tsx | 4 |
2 files changed, 9 insertions, 9 deletions
diff --git a/test/console/components/console/Completion.test.tsx b/test/console/components/console/Completion.test.tsx index 7dd634f..dee0e80 100644 --- a/test/console/components/console/Completion.test.tsx +++ b/test/console/components/console/Completion.test.tsx @@ -9,17 +9,17 @@ describe("console/components/console/completion/Completion", () => { { name: "Fruit", items: [ - { caption: "apple" }, - { caption: "banana" }, - { caption: "cherry" }, + { primary: "apple" }, + { primary: "banana" }, + { primary: "cherry" }, ], }, { name: "Element", items: [ - { caption: "argon" }, - { caption: "boron" }, - { caption: "carbon" }, + { primary: "argon" }, + { primary: "boron" }, + { primary: "carbon" }, ], }, ]; @@ -39,7 +39,7 @@ describe("console/components/console/completion/Completion", () => { const items = group.findAllByType(CompletionItem); expect(items).toHaveLength(completions[i].items.length); items.forEach((item, j) => { - expect(item.props.caption).toEqual(completions[i].items[j].caption); + expect(item.props.primary).toEqual(completions[i].items[j].primary); }); }); }); diff --git a/test/console/components/console/CompletionItem.test.tsx b/test/console/components/console/CompletionItem.test.tsx index ae73b21..6e89bc8 100644 --- a/test/console/components/console/CompletionItem.test.tsx +++ b/test/console/components/console/CompletionItem.test.tsx @@ -8,8 +8,8 @@ describe("console/components/console/completion/CompletionItem", () => { <CompletionItem shown={true} highlight={false} - caption="twitter" - url="https://twitter.com/" + primary="twitter" + secondary="https://twitter.com/" /> ).root; const spans = root.findAllByType("span"); |