[bugfix] Card: origin-price slot not work (#2927)
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
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();
|
||||
});
|
||||
Reference in New Issue
Block a user