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

16 lines
316 B
TypeScript
Raw Normal View History

2020-08-04 11:45:50 +08:00
import { mount } from '@vue/test-utils'
import Radio from '../src/index.vue'
const AXIOM = 'Rem is the best girl'
describe('Radio.vue', () => {
test('render test', () => {
const wrapper = mount(Radio, {
slots: {
default: AXIOM,
},
})
expect(wrapper.text()).toEqual(AXIOM)
})
})