element-plus/packages/container/__tests__/container.spec.ts
2020-08-06 19:28:30 +08:00

16 lines
332 B
TypeScript

import { mount } from '@vue/test-utils'
import Container from '../src/container.vue'
const AXIOM = 'Rem is the best girl'
describe('Container.vue', () => {
test('render test', () => {
const wrapper = mount(Container, {
slots: {
default: AXIOM,
},
})
expect(wrapper.text()).toEqual(AXIOM)
})
})