An ebook/comic library service and web client
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.

12 lines
347 B

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