vuetify
Version:
Vue Material Component Framework
29 lines (23 loc) • 528 B
text/typescript
// Components
import VFlex from '../VFlex'
// Utilities
import {
mount,
MountOptions,
Wrapper,
} from '@vue/test-utils'
describe('VFlex.ts', () => {
type Instance = InstanceType<typeof VFlex>
let mountFunction: (options?: MountOptions<Instance>) => Wrapper<Instance>
beforeEach(() => {
mountFunction = (options = {}) => {
return mount(VFlex, {
...options,
})
}
})
it('should work', () => {
const wrapper = mountFunction()
expect(wrapper.html()).toMatchSnapshot()
})
})