File tree Expand file tree Collapse file tree 4 files changed +20
-12
lines changed
Expand file tree Collapse file tree 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
1212import { mount } from ' @vue/test-utils'
1313import Foo from ' ./Foo.vue'
1414
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+ })
1820```
1921
2022- ** Note:**
Original file line number Diff line number Diff line change @@ -11,9 +11,11 @@ checkbox 型もしくは radio 型の input 要素の checked の値をセット
1111import { mount } from ' @vue/test-utils'
1212import Foo from ' ./Foo.vue'
1313
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+ })
1719```
1820
1921- ** 注:**
Original file line number Diff line number Diff line change 1212import { mount } from ' @vue/test-utils'
1313import Foo from ' ./Foo.vue'
1414
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+ })
1820```
1921
2022- ** Примечание:**
Original file line number Diff line number Diff line change 1212import { mount } from ' @vue/test-utils'
1313import Foo from ' ./Foo.vue'
1414
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+ })
1820```
1921
2022- ** 注意:**
You can’t perform that action at this time.
0 commit comments