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'); + }); });