about summary refs log tree commit diff
path: root/tests/components/Footer.test.js
blob: e284b5a40cadfc2991a8e5d55002bbf171ed95de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import { shallowMount } from '@vue/test-utils'
import Footer from '../../components/Footer'

describe('Footer', () => {
  // Now mount the component and you have the wrapper
  const wrapper = shallowMount(Footer)

  wrapper.setProps({
    routes: [
      {
        path: '/',
        name: 'Home'
      }
    ]
  })

  it('match snapshot', () => {
    expect(wrapper.element).toMatchSnapshot()
  })
})