Skip to content
This repository was archived by the owner on Mar 27, 2025. It is now read-only.

Commit e2807c3

Browse files
committed
test: fix broken test
1 parent d77abc5 commit e2807c3

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

packages/bootstrap-vue-3/src/components/BButton/button-group.spec.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,15 @@ describe('button-group', () => {
5252

5353
it('has class btn-group-{type} prop size', async () => {
5454
const wrapper = mount(BButtonGroup, {
55-
props: {size: 'foobar'},
55+
props: {size: 'sm'},
5656
})
57-
expect(wrapper.classes()).toContain('btn-group-foobar')
57+
expect(wrapper.classes()).toContain('btn-group-sm')
5858
await wrapper.setProps({size: undefined})
59-
expect(wrapper.classes()).not.toContain('btn-group-foobar')
59+
expect(wrapper.classes()).not.toContain('btn-group-sm')
60+
})
61+
62+
it('has class btn-group when prop size is undefined', () => {
63+
const wrapper = mount(BButtonGroup, {props: {size: undefined}})
64+
expect(wrapper.classes()).toContain('btn-group')
6065
})
6166
})

0 commit comments

Comments
 (0)