From dbf1af1b3dabc8682acee90ef333ef16779ebee5 Mon Sep 17 00:00:00 2001 From: Bence Markus Date: Sat, 18 Nov 2023 22:35:50 +0100 Subject: [PATCH] test updates --- src/components/Badge/__tests__/BoBadge.test.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/components/Badge/__tests__/BoBadge.test.ts b/src/components/Badge/__tests__/BoBadge.test.ts index 8ac592d9..d595797d 100644 --- a/src/components/Badge/__tests__/BoBadge.test.ts +++ b/src/components/Badge/__tests__/BoBadge.test.ts @@ -1,4 +1,5 @@ import { + BadgeForm, BadgeSize, BadgeType, BadgeVariant, @@ -55,4 +56,14 @@ describe('BoIcon', () => { }); expect(wrapper.classes()).toContain('filled'); }); + + it('renders with correct form', () => { + const wrapper = mount(BoBadge, { + props: { + label: 'test', + form: BadgeForm.Pill, + }, + }); + expect(wrapper.classes()).toContain('pill'); + }); });