Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 329 Bytes

destroy.md

File metadata and controls

20 lines (16 loc) · 329 Bytes

destroy()

Vue コンポーネントインスタンスを破棄します。

  • 例:
import { mount } from '@vue/test-utils'
import { expect } from 'chai'
import sinon from 'sinon'

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