fix errorHandler tests

This commit is contained in:
Evan You 2016-06-01 17:14:02 -04:00
parent 068f6270d5
commit bb5c102c35

View File

@ -35,6 +35,8 @@ describe('Global config', () => {
})
describe('errorHandler', () => {
it('should be called with correct args', () => {
const spy = jasmine.createSpy('errorHandler')
Vue.config.errorHandler = spy
const err = new Error()
const vm = new Vue({
@ -44,3 +46,4 @@ describe('Global config', () => {
Vue.config.errorHandler = null
})
})
})