import { mount } from '@vue/test-utils' import Card from '../src/index.vue' const AXIOM = 'Rem is the best girl' describe('Card.vue', () => { test('render test', () => { const wrapper = mount(Card, { slots: { default: AXIOM, }, }) expect(wrapper.text()).toEqual(AXIOM) }) test('string header', () => { const header = 'I am header' const wrapper = mount(Card, { slots: { default: AXIOM, }, props: { header, }, }) expect(wrapper.text()).toContain(header) }) test('vnode header', () => { const headerCls = 'header-text' const btnCls = 'test-btn' const wrapper = mount(Card, { slots: { default: AXIOM, header: `