Skip to content

Commit

Permalink
docs(setchecked): update setChecked docs to reflect async mode
Browse files Browse the repository at this point in the history
  • Loading branch information
AtofStryker committed Aug 16, 2020
1 parent bfb24df commit 80a5df8
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 12 deletions.
8 changes: 5 additions & 3 deletions docs/api/wrapper/setChecked.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@ Sets checked value for input element of type checkbox or radio and updates `v-mo
import { mount } from '@vue/test-utils'
import Foo from './Foo.vue'

const wrapper = mount(Foo)
const radioInput = wrapper.find('input[type="radio"]')
radioInput.setChecked()
test('setChecked demo', async () => {
const wrapper = mount(Foo)
const radioInput = wrapper.find('input[type="radio"]')
await radioInput.setChecked()
})
```

- **Note:**
Expand Down
8 changes: 5 additions & 3 deletions docs/ja/api/wrapper/setChecked.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ checkbox 型もしくは radio 型の input 要素の checked の値をセット
import { mount } from '@vue/test-utils'
import Foo from './Foo.vue'

const wrapper = mount(Foo)
const radioInput = wrapper.find('input[type="radio"]')
radioInput.setChecked()
test('setChecked demo', async () => {
const wrapper = mount(Foo)
const radioInput = wrapper.find('input[type="radio"]')
await radioInput.setChecked()
})
```

- **注:**
Expand Down
8 changes: 5 additions & 3 deletions docs/ru/api/wrapper/setChecked.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@
import { mount } from '@vue/test-utils'
import Foo from './Foo.vue'

const wrapper = mount(Foo)
const radioInput = wrapper.find('input[type="radio"]')
radioInput.setChecked()
test('setChecked demo', async () => {
const wrapper = mount(Foo)
const radioInput = wrapper.find('input[type="radio"]')
await radioInput.setChecked()
})
```

- **Примечание:**
Expand Down
8 changes: 5 additions & 3 deletions docs/zh/api/wrapper/setChecked.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@
import { mount } from '@vue/test-utils'
import Foo from './Foo.vue'

const wrapper = mount(Foo)
const radioInput = wrapper.find('input[type="radio"]')
radioInput.setChecked()
test('setChecked demo', async () => {
const wrapper = mount(Foo)
const radioInput = wrapper.find('input[type="radio"]')
await radioInput.setChecked()
})
```

- **注意:**
Expand Down

0 comments on commit 80a5df8

Please sign in to comment.