Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 309 Bytes

setChecked.md

File metadata and controls

18 lines (12 loc) · 309 Bytes

setChecked(value)

Sets the value of a radio or checkbox <input>.

  • Arguments:

    • {Boolean} selected
  • Example:

import { mount } from '@vue/test-utils'
import Foo from './Foo.vue'

const wrapper = mount(Foo)
const option = wrapper.find('input[type="radio"]')
option.setChecked()