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