aboutsummaryrefslogtreecommitdiff
path: root/test/console
diff options
context:
space:
mode:
Diffstat (limited to 'test/console')
-rw-r--r--test/console/components/console/Completion.test.tsx14
-rw-r--r--test/console/components/console/CompletionItem.test.tsx4
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");