Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 246 Bytes

isEmpty.md

File metadata and controls

15 lines (10 loc) · 246 Bytes

isEmpty

Assert Wrapper does not contain child node.

  • Returns: {boolean}

  • Example:

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

const wrapper = mount(Foo)
expect(wrapper.isEmpty()).toBe(true)