UNPKG

vuetify

Version:

Vue Material Component Framework

28 lines (22 loc) 578 B
// Components import VListItemGroup from '../VListItemGroup' // Utilities import { mount, Wrapper, } from '@vue/test-utils' describe('VListItemGroup.ts', () => { type Instance = InstanceType<typeof VListItemGroup> let mountFunction: (options?: object) => Wrapper<Instance> beforeEach(() => { mountFunction = (options = {}) => { return mount(VListItemGroup, { ...options, }) } }) it('should have the correct role', () => { const wrapper = mountFunction() expect(wrapper.element.getAttribute('role')).toBe('listbox') }) })