CheckboxGroup is hand-built (no shadcn-vue stock equivalent) as a simple name/layout provider via provide/inject, matching RadioGroup's pattern -- it does not coordinate an array modelValue across children the way PrimeVue's did, since each Checkbox now owns its own boolean v-model. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
11 lines
416 B
TypeScript
11 lines
416 B
TypeScript
import { describe, it, expect } from 'vitest'
|
|
import { mount } from '@vue/test-utils'
|
|
import { CheckboxGroup } from '../src/lib'
|
|
|
|
describe('CheckboxGroup', () => {
|
|
it('renders as a group container', () => {
|
|
const wrapper = mount(CheckboxGroup, { slots: { default: '<span>child</span>' } })
|
|
expect(wrapper.attributes('role')).toBe('group')
|
|
expect(wrapper.html()).toContain('<span>child</span>')
|
|
})
|
|
})
|