Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 270 Bytes

destroy.md

File metadata and controls

19 lines (15 loc) · 270 Bytes

destroy()

Destroys a Vue component instance.

  • Example:
import { mount } from '@vue/test-utils'
import sinon from 'sinon'

const spy = sinon.stub()
mount({
  render: null,
  destroyed () {
    spy()
  }
}).destroy()
expect(spy.calledOnce).toBe(true)