File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ const yourComponent = {
6868 required: true
6969 }
7070 },
71- render (h ) {
71+ render (h ) {
7272 return h (' p' , this .foo )
7373 }
7474}
@@ -83,11 +83,13 @@ const wrapper = shallowMount(Component, {
8383 qux: ' <my-component />' ,
8484 quux: ' <your-component foo="lorem"/><your-component :foo="yourProperty"/>'
8585 },
86- stubs: { // used to register custom components
86+ stubs: {
87+ // used to register custom components
8788 ' my-component' : MyComponent,
8889 ' your-component' : yourComponent
8990 },
90- mocks: { // used to add properties to the rendering context
91+ mocks: {
92+ // used to add properties to the rendering context
9193 yourProperty: ' ipsum'
9294 }
9395})
@@ -338,4 +340,4 @@ const options = {
338340}
339341const wrapper = mount (Component, options)
340342expect (wrapper .text ()).toBe (' aBC' )
341- ```
343+ ```
You can’t perform that action at this time.
0 commit comments