mirror of
https://github.com/element-plus/element-plus.git
synced 2024-12-27 03:01:14 +08:00
16 lines
313 B
TypeScript
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)
|
|
})
|
|
})
|