fix: rename unmount lifecycles

This commit is contained in:
chenjiahan
2020-08-17 10:40:48 +08:00
parent 3a290ce564
commit 6c85294d35
9 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -63,7 +63,7 @@ export default createComponent({
}
},
beforeDestroy() {
beforeUnmount() {
this.pause();
},
+1 -1
View File
@@ -174,7 +174,7 @@ test('incomplate format prop', () => {
expect(wrapper).toMatchSnapshot();
});
test('pause when destroyed', () => {
test('pause when unmounted', () => {
const wrapper = mount(CountDown);
expect(wrapper.vm.counting).toBeTruthy();
wrapper.destroy();