File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ const yourComponent = {
68
68
required: true
69
69
}
70
70
},
71
- render (h ) {
71
+ render (h ) {
72
72
return h (' p' , this .foo )
73
73
}
74
74
}
@@ -83,11 +83,13 @@ const wrapper = shallowMount(Component, {
83
83
qux: ' <my-component />' ,
84
84
quux: ' <your-component foo="lorem"/><your-component :foo="yourProperty"/>'
85
85
},
86
- stubs: { // used to register custom components
86
+ stubs: {
87
+ // used to register custom components
87
88
' my-component' : MyComponent,
88
89
' your-component' : yourComponent
89
90
},
90
- mocks: { // used to add properties to the rendering context
91
+ mocks: {
92
+ // used to add properties to the rendering context
91
93
yourProperty: ' ipsum'
92
94
}
93
95
})
@@ -338,4 +340,4 @@ const options = {
338
340
}
339
341
const wrapper = mount (Component, options)
340
342
expect (wrapper .text ()).toBe (' aBC' )
341
- ```
343
+ ```
You can’t perform that action at this time.
0 commit comments