element-plus/packages/tooltip/__tests__/tooltip.spec.ts
JeremyWuuuuu 1584f07f0c [WIP]feat/tooltip
- Code done
- Awaiting test cases
2020-08-25 22:51:26 +08:00

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)
})
})