mime-chat/tests/unit/example.spec.ts
Enrique Hernandez ee6b0c3c5c init
2020-10-06 21:09:02 -05:00

12 lines
335 B
TypeScript

import { shallowMount } from '@vue/test-utils'
import HelloWorld from '@/components/HelloWorld.vue'
describe('HelloWorld.vue', () => {
it('renders props.msg when passed', () => {
const msg = 'new message'
const wrapper = shallowMount(HelloWorld, {
props: { msg }
})
expect(wrapper.text()).toMatch(msg)
})
})