diff --git a/src/v2/cookbook/unit-testing-vue-components.md b/src/v2/cookbook/unit-testing-vue-components.md index da10b710a8..ae08118ce2 100644 --- a/src/v2/cookbook/unit-testing-vue-components.md +++ b/src/v2/cookbook/unit-testing-vue-components.md @@ -45,8 +45,9 @@ export default { ```js import { shallowMount } from '@vue/test-utils' +import Hello from './Hello.vue' -test('Foo', () => { +test('Hello', () => { // render the component const wrapper = shallowMount(Hello) @@ -144,6 +145,7 @@ And our first attempt at test: ```js import { shallowMount } from '@vue/test-utils' +import Foo from './Foo.vue' describe('Foo', () => { it('renders a message and responds correctly to user input', () => {