Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 341 Bytes

isEmpty.md

File metadata and controls

17 lines (12 loc) · 341 Bytes

isEmpty()

Assert every Wrapper in WrapperArray does not contain child node.

  • Returns: {boolean}

  • Example:

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)