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

16 lines
315 B
TypeScript
Raw Normal View History

2020-07-24 22:22:21 +08:00
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)
})
})