index.spec.js 338 B

1234567891011121314151617
  1. import Card from '..';
  2. import { mount } from '../../../test/utils';
  3. test('render origin-price slot', () => {
  4. const wrapper = mount({
  5. template: `
  6. <card>
  7. <template v-slot:origin-price>Custom Origin Price</template>
  8. </card>
  9. `,
  10. components: {
  11. Card
  12. }
  13. });
  14. expect(wrapper).toMatchSnapshot();
  15. });