Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 390 Bytes

File metadata and controls

19 lines (13 loc) · 390 Bytes

is(selector)

Assert every Wrapper in WrapperArray DOM node or vm matches selector.

  • Arguments:

    • {string|Component} selector
  • Returns: {boolean}

  • Example:

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

const wrapper = mount(Foo)
const divArray = wrapper.find('div')
expect(divArray.is('div')).toBe(true)