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'
19
19
const wrapper = mount (Foo)
20
20
const barArray = wrapper .findAll (Bar)
21
21
22
- barArray .setComputed ({
23
- computed1: ' new-computed1' ,
22
+ barArray .setComputed ({
23
+ computed1: ' new-computed1' ,
24
24
computed2: ' new-computed2'
25
25
})
26
26
```
Original file line number Diff line number Diff line change @@ -17,24 +17,24 @@ import { expect } from 'chai'
17
17
18
18
const wrapper = mount ({
19
19
template: ' <div>{{ computed1 }} {{ computed2 }}</div>' ,
20
- data () {
20
+ data () {
21
21
return {
22
- initial: ' initial' ,
23
- };
22
+ initial: ' initial'
23
+ }
24
24
},
25
25
computed: {
26
- computed1 () {
27
- return this .initial
28
- },
29
- computed2 () {
30
- return this .initial
26
+ computed1 () {
27
+ return this .initial
31
28
},
29
+ computed2 () {
30
+ return this .initial
31
+ }
32
32
}
33
33
})
34
34
35
35
expect (wrapper .html ()).toBe (' <div>initial initial</div>' )
36
36
37
- wrapper .setComputed ({
37
+ wrapper .setComputed ({
38
38
computed1: ' new-computed1' ,
39
39
computed2: ' new-computed2'
40
40
})
You can’t perform that action at this time.
0 commit comments