Skip to content

Latest commit

Β 

History

History
19 lines (14 loc) Β· 453 Bytes

update.md

File metadata and controls

19 lines (14 loc) Β· 453 Bytes

update()

Vue γ‚³γƒ³γƒγƒΌγƒγƒ³γƒˆγ‚’εΌ·εˆΆηš„γ«ε†ζη”»γ—γΎγ™γ€‚

vm を含む Wrapper γ§ε‘Όγ³ε‡Ίγ•γ‚ŒγŸε ΄εˆγ€Wrapper vm γ‚’εΌ·εˆΆηš„γ«ε†ζη”»γ—γΎγ™γ€‚

  • δΎ‹:
import { mount } from '@vue/test-utils'
import { expect } from 'chai'
import Foo from './Foo.vue'

const wrapper = mount(Foo)
expect(wrapper.vm.bar).toBe('bar')
wrapper.vm.bar = 'new value'
wrapper.update()
expect(wrapper.vm.bar).toBe('new value')