File tree 4 files changed +20
-12
lines changed
4 files changed +20
-12
lines changed Original file line number Diff line number Diff line change @@ -12,9 +12,11 @@ Sets checked value for input element of type checkbox or radio and updates `v-mo
12
12
import { mount } from ' @vue/test-utils'
13
13
import Foo from ' ./Foo.vue'
14
14
15
- const wrapper = mount (Foo)
16
- const radioInput = wrapper .find (' input[type="radio"]' )
17
- radioInput .setChecked ()
15
+ test (' setChecked demo' , async () => {
16
+ const wrapper = mount (Foo)
17
+ const radioInput = wrapper .find (' input[type="radio"]' )
18
+ await radioInput .setChecked ()
19
+ })
18
20
```
19
21
20
22
- ** Note:**
Original file line number Diff line number Diff line change @@ -11,9 +11,11 @@ checkbox 型もしくは radio 型の input 要素の checked の値をセット
11
11
import { mount } from ' @vue/test-utils'
12
12
import Foo from ' ./Foo.vue'
13
13
14
- const wrapper = mount (Foo)
15
- const radioInput = wrapper .find (' input[type="radio"]' )
16
- radioInput .setChecked ()
14
+ test (' setChecked demo' , async () => {
15
+ const wrapper = mount (Foo)
16
+ const radioInput = wrapper .find (' input[type="radio"]' )
17
+ await radioInput .setChecked ()
18
+ })
17
19
```
18
20
19
21
- ** 注:**
Original file line number Diff line number Diff line change 12
12
import { mount } from ' @vue/test-utils'
13
13
import Foo from ' ./Foo.vue'
14
14
15
- const wrapper = mount (Foo)
16
- const radioInput = wrapper .find (' input[type="radio"]' )
17
- radioInput .setChecked ()
15
+ test (' setChecked demo' , async () => {
16
+ const wrapper = mount (Foo)
17
+ const radioInput = wrapper .find (' input[type="radio"]' )
18
+ await radioInput .setChecked ()
19
+ })
18
20
```
19
21
20
22
- ** Примечание:**
Original file line number Diff line number Diff line change 12
12
import { mount } from ' @vue/test-utils'
13
13
import Foo from ' ./Foo.vue'
14
14
15
- const wrapper = mount (Foo)
16
- const radioInput = wrapper .find (' input[type="radio"]' )
17
- radioInput .setChecked ()
15
+ test (' setChecked demo' , async () => {
16
+ const wrapper = mount (Foo)
17
+ const radioInput = wrapper .find (' input[type="radio"]' )
18
+ await radioInput .setChecked ()
19
+ })
18
20
```
19
21
20
22
- ** 注意:**
You can’t perform that action at this time.
0 commit comments