Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 297 Bytes

isEmpty.md

File metadata and controls

16 lines (11 loc) · 297 Bytes

isEmpty()

Wrapper が子ノードを含んでいないか検証します。

  • 戻り値: {boolean}

  • 例:

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

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