test: rename destroy to unmount

This commit is contained in:
chenjiahan
2021-01-02 20:51:50 +08:00
parent 1ff0c18d15
commit c261bcc4a7
10 changed files with 14 additions and 14 deletions
+3 -3
View File
@@ -3,7 +3,7 @@ import { mount, triggerDrag, later } from '../../../test';
let wrapper;
afterEach(() => {
wrapper.destroy();
wrapper.unmount();
});
test('lazy render', () => {
@@ -40,10 +40,10 @@ test('popup lock scroll', () => {
value: true,
},
});
wrapper1.vm.$destroy();
wrapper1.vm.$unmount();
expect(document.body.classList.contains('van-overflow-hidden')).toBeTruthy();
wrapper2.vm.$destroy();
wrapper2.vm.$unmount();
expect(document.body.classList.contains('van-overflow-hidden')).toBeFalsy();
});