From 69c76c36ee0856b94c34713ff755eded6c8edf1a Mon Sep 17 00:00:00 2001 From: Allan Lasser Date: Tue, 23 Apr 2024 09:47:47 -0400 Subject: [PATCH] Improve test case --- src/lib/components/addons/tests/AddOnListItem.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/components/addons/tests/AddOnListItem.test.ts b/src/lib/components/addons/tests/AddOnListItem.test.ts index 1e11f79d4..c8f19b013 100644 --- a/src/lib/components/addons/tests/AddOnListItem.test.ts +++ b/src/lib/components/addons/tests/AddOnListItem.test.ts @@ -7,5 +7,5 @@ test("AddOnListItem", () => { const result = render(AddOnListItem, { addon }); expect(result.getByRole("heading")).toHaveTextContent(addon.name); const premium = render(AddOnListItem, { addon: premiumAddon }); - expect(premium.getByRole("status")).toBeInTheDocument(); + expect(premium.getByRole("status")).toHaveTextContent("Premium"); });