UNPKG

vuetify

Version:

Vue Material Component Framework

29 lines (24 loc) 604 B
import Rippleable from '../' import { mount, MountOptions, Wrapper, } from '@vue/test-utils' describe('rippleable.ts', () => { const Mock = Rippleable.extend({ render () { return this.genRipple() }, }) type Instance = InstanceType<typeof Mock> let mountFunction: (options?: MountOptions<Instance>) => Wrapper<Instance> beforeEach(() => { mountFunction = (options?: MountOptions<Instance>) => { return mount(Mock, options) } }) it('should match snapshot', () => { const wrapper = mountFunction() expect(wrapper.html()).toMatchSnapshot() }) })