You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
362 B
14 lines
362 B
6 years ago
|
import { expect } from 'chai'
|
||
|
import { shallow } 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 = shallow(HelloWorld, {
|
||
|
propsData: { msg }
|
||
|
})
|
||
|
expect(wrapper.text()).to.include(msg)
|
||
|
})
|
||
|
})
|