Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 356 Bytes

isEmpty.md

File metadata and controls

17 lines (12 loc) · 356 Bytes

isEmpty()

Asserte que chaque Wrapper de WrapperArray ne contient pas de nœuds enfants.

  • Retourne : {boolean}

  • Exemple :

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)