fix: rename unmount lifecycles
This commit is contained in:
@@ -63,7 +63,7 @@ export default createComponent({
|
||||
}
|
||||
},
|
||||
|
||||
beforeDestroy() {
|
||||
beforeUnmount() {
|
||||
this.pause();
|
||||
},
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user