Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 345 Bytes

isEmpty.md

File metadata and controls

17 lines (12 loc) · 345 Bytes

isEmpty()

断言 WrapperArray 的每个 Wrapper 都不包含子节点。

  • 返回值:{boolean}

  • 示例:

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

const wrapper = mount(Foo)
const divArray = wrapper.findAll('div')
expect(divArray.isEmpty()).toBe(true)