import Vue from 'vue'; import Card from '..'; import { mount } from '../../../test/utils'; Vue.use(Card); test('render origin-price slot', () => { const wrapper = mount({ template: ` ` }); expect(wrapper).toMatchSnapshot(); }); test('render price & num slot', () => { const wrapper = mount({ template: ` ` }); expect(wrapper).toMatchSnapshot(); }); test('render bottom slot', () => { const wrapper = mount({ template: ` ` }); expect(wrapper).toMatchSnapshot(); }); test('render thumb & tag slot', () => { const wrapper = mount({ template: ` ` }); expect(wrapper).toMatchSnapshot(); }); test('render title & desc slot', () => { const wrapper = mount({ template: ` ` }); expect(wrapper).toMatchSnapshot(); });