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