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