From 4a1bf3d09eb5bbf8c639875f9785eeff3afeb6a9 Mon Sep 17 00:00:00 2001 From: Alexander Sokolov Date: Sat, 12 Jan 2019 12:02:38 +0300 Subject: [PATCH] Update unit-testing-vue-components.md --- src/v2/cookbook/unit-testing-vue-components.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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', () => {