UNPKG

vuetify

Version:

Vue Material Component Framework

37 lines (31 loc) 827 B
import RowGroup from '../RowGroup' import { mount, Wrapper, MountOptions, } from '@vue/test-utils' describe('Table RowGroup', () => { type Instance = InstanceType<typeof RowGroup> let mountFunction: (options?: MountOptions<Instance>) => Wrapper<Instance> beforeEach(() => { mountFunction = (options?: MountOptions<Instance>) => { return mount(RowGroup, options) } }) it('should render with "column.summary" slot', () => { const wrapper = mountFunction({ slots: { 'column.summary': '<div></div>', }, }) expect(wrapper.html()).toMatchSnapshot() }) it('should render with "row.summary" slot', () => { const wrapper = mountFunction({ slots: { 'row.summary': '<div></div>', }, }) expect(wrapper.html()).toMatchSnapshot() }) })