element-plus/packages/container/__tests__/container.spec.ts

16 lines
332 B
TypeScript
Raw Normal View History

import { mount } from '@vue/test-utils'
2020-08-05 16:36:08 +08:00
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)
})
})