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.

12345678910111213
  1. import { expect } from 'chai'
  2. import { shallow } from '@vue/test-utils'
  3. import HelloWorld from '@/components/HelloWorld.vue'
  4. describe('HelloWorld.vue', () => {
  5. it('renders props.msg when passed', () => {
  6. const msg = 'new message'
  7. const wrapper = shallow(HelloWorld, {
  8. propsData: { msg }
  9. })
  10. expect(wrapper.text()).to.include(msg)
  11. })
  12. })