Empty.spec.js 406 B

1234567891011121314
  1. import { mount, shallow } from '@vue/test-utils'
  2. import Empty from './components/Empty.vue'
  3. describe('Empty.vue', () => {
  4. it('properly serializes a shallowly-rendered wrapper', () => {
  5. const wrapper = shallow(Empty)
  6. expect(wrapper).toMatchSnapshot()
  7. })
  8. it('properly serializes a fully-mounted wrapper', () => {
  9. const wrapper = mount(Empty)
  10. expect(wrapper).toMatchSnapshot()
  11. })
  12. })