vant/packages/card/test/index.spec.js

18 lines
338 B
JavaScript

import Card from '..';
import { mount } from '../../../test/utils';
test('render origin-price slot', () => {
const wrapper = mount({
template: `
<card>
<template v-slot:origin-price>Custom Origin Price</template>
</card>
`,
components: {
Card
}
});
expect(wrapper).toMatchSnapshot();
});