Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 467 Bytes

File metadata and controls

20 lines (14 loc) · 467 Bytes

is(selector)

WrapperArray の全ての Wrapper のDOMノード、もしくはセレクタvm とマッチするか検証します。

  • 引数:

    • {string|Component} selector
  • 戻り値: {boolean}

  • 例:

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

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