File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -19,8 +19,8 @@ import Bar from './Bar.vue'
1919const wrapper = mount (Foo)
2020const barArray = wrapper .findAll (Bar)
2121
22- barArray .setComputed ({
23- computed1: ' new-computed1' ,
22+ barArray .setComputed ({
23+ computed1: ' new-computed1' ,
2424 computed2: ' new-computed2'
2525})
2626```
Original file line number Diff line number Diff line change @@ -17,24 +17,24 @@ import { expect } from 'chai'
1717
1818const wrapper = mount ({
1919 template: ' <div>{{ computed1 }} {{ computed2 }}</div>' ,
20- data () {
20+ data () {
2121 return {
22- initial: ' initial' ,
23- };
22+ initial: ' initial'
23+ }
2424 },
2525 computed: {
26- computed1 () {
27- return this .initial
28- },
29- computed2 () {
30- return this .initial
26+ computed1 () {
27+ return this .initial
3128 },
29+ computed2 () {
30+ return this .initial
31+ }
3232 }
3333})
3434
3535expect (wrapper .html ()).toBe (' <div>initial initial</div>' )
3636
37- wrapper .setComputed ({
37+ wrapper .setComputed ({
3838 computed1: ' new-computed1' ,
3939 computed2: ' new-computed2'
4040})
You can’t perform that action at this time.
0 commit comments