Skip to content

Commit 22567e4

Browse files
Alex-Sokolovphanan
authored andcommitted
Update unit-testing-vue-components.md (#1934)
1 parent a835017 commit 22567e4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/v2/cookbook/unit-testing-vue-components.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,9 @@ export default {
4545

4646
```js
4747
import { shallowMount } from '@vue/test-utils'
48+
import Hello from './Hello.vue'
4849

49-
test('Foo', () => {
50+
test('Hello', () => {
5051
// render the component
5152
const wrapper = shallowMount(Hello)
5253

@@ -144,6 +145,7 @@ And our first attempt at test:
144145

145146
```js
146147
import { shallowMount } from '@vue/test-utils'
148+
import Foo from './Foo.vue'
147149

148150
describe('Foo', () => {
149151
it('renders a message and responds correctly to user input', () => {

0 commit comments

Comments
 (0)