From 5eb4fd6f77e82756753a958c12a6956bacbdb2de Mon Sep 17 00:00:00 2001 From: Matteo Fogli Date: Mon, 10 Dec 2018 12:28:40 +0100 Subject: [PATCH] fix(lifecycle): beforeUpdated should not be called if component is destroyed, fix #8076 fix references to beforeUpdate spy --- test/unit/features/options/lifecycle.spec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit/features/options/lifecycle.spec.js b/test/unit/features/options/lifecycle.spec.js index ef274ed64c6..6f48ba06368 100644 --- a/test/unit/features/options/lifecycle.spec.js +++ b/test/unit/features/options/lifecycle.spec.js @@ -155,14 +155,14 @@ describe('Options lifecycle hooks', () => { // #8076 it('should not be called after destroy', done => { - const beforeUpdated = jasmine.createSpy('beforeUpdated') + const beforeUpdate = jasmine.createSpy('beforeUpdate') const destroyed = jasmine.createSpy('destroyed') Vue.component('todo', { template: '
{{todo.done}}
', props: ['todo'], destroyed, - beforeUpdated + beforeUpdate }) const vm = new Vue({