You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
290 B
19 lines
290 B
9 years ago
|
import Vue from 'vue'
|
||
|
|
||
|
describe('Options methods', () => {
|
||
|
it('should have correct context', () => {
|
||
|
const vm = new Vue({
|
||
|
data: {
|
||
|
a: 1
|
||
|
},
|
||
|
methods: {
|
||
|
plus () {
|
||
|
this.a++
|
||
|
}
|
||
|
}
|
||
|
})
|
||
|
vm.plus()
|
||
|
expect(vm.a).toBe(2)
|
||
|
})
|
||
|
})
|