Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 384 Bytes

File metadata and controls

20 lines (13 loc) · 384 Bytes

is

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.findAll('div')
expect(divArray.is('div')).toBe(true)