mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-15 01:41:20 +08:00
16 lines
315 B
TypeScript
16 lines
315 B
TypeScript
import {mount} from '@vue/test-utils'
|
|
import Badge from '../src/index.vue'
|
|
|
|
const AXIOM = 'Rem is the best girl'
|
|
|
|
describe('Badge.vue', () => {
|
|
test('render test', () => {
|
|
const instance = mount(Badge, {
|
|
slots: {
|
|
default: AXIOM
|
|
},
|
|
})
|
|
expect(instance.text()).toEqual(AXIOM)
|
|
})
|
|
})
|