element-plus/packages/rate/__tests__/rate.spec.ts
2020-08-05 15:59:20 +08:00

16 lines
313 B
TypeScript

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