mirror of
https://github.com/nuxt/nuxt.git
synced 2024-12-18 02:07:14 +00:00
15 lines
359 B
JavaScript
15 lines
359 B
JavaScript
|
import { shallowMount } from '@vue/test-utils'
|
||
|
import index from './index'
|
||
|
|
||
|
describe('index', () => {
|
||
|
test('mounts properly', () => {
|
||
|
const wrapper = shallowMount(index)
|
||
|
expect(wrapper.isVueInstance()).toBeTruthy()
|
||
|
})
|
||
|
|
||
|
test('renders properly', () => {
|
||
|
const wrapper = shallowMount(index)
|
||
|
expect(wrapper.html()).toMatchSnapshot()
|
||
|
})
|
||
|
})
|