vuetify
Version:
Vue Material Component Framework
31 lines (25 loc) • 635 B
text/typescript
// Libraries
import Vue from 'vue'
// Components
import VAppBarNavIcon from '../VAppBarNavIcon'
// Utilities
import {
mount,
Wrapper,
} from '@vue/test-utils'
import { ExtractVue } from '../../../util/mixins'
describe('AppBarNavIcon.ts', () => {
type Instance = ExtractVue<typeof VAppBarNavIcon>
let mountFunction: (options?: object) => Wrapper<Instance>
beforeEach(() => {
mountFunction = (options = {}) => {
return mount(VAppBarNavIcon, {
...options,
})
}
})
it('should render correctly', () => {
const wrapper = mountFunction()
expect(wrapper.html()).toMatchSnapshot()
})
})