mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-14 09:20:51 +08:00
1584f07f0c
- Code done - Awaiting test cases
16 lines
322 B
TypeScript
16 lines
322 B
TypeScript
import { mount } from '@vue/test-utils'
|
|
import Tooltip from '../src/index.vue'
|
|
|
|
const AXIOM = 'Rem is the best girl'
|
|
|
|
describe('Tooltip.vue', () => {
|
|
test('render test', () => {
|
|
const wrapper = mount(Tooltip, {
|
|
slots: {
|
|
default: AXIOM,
|
|
},
|
|
})
|
|
expect(wrapper.text()).toEqual(AXIOM)
|
|
})
|
|
})
|