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
@@ -6,7 +6,7 @@ test('click event', () => {
wrapper.trigger('click');
expect(wrapper.emitted('click')[0][0]).toBeTruthy();
wrapper.destroy();
wrapper.unmount();
});
test('load event', () => {
@@ -63,7 +63,7 @@ test('lazy-load load event', (done) => {
hanlder({ el: wrapper.find('img').element });
expect(wrapper.emitted('load').length).toEqual(1);
expect(wrapper.html()).toMatchSnapshot();
wrapper.destroy();
wrapper.unmount();
});
}
},
@@ -89,7 +89,7 @@ test('lazy-load error event', (done) => {
hanlder({ el: wrapper.find('img').element });
expect(wrapper.emitted('error').length).toEqual(1);
expect(wrapper.html()).toMatchSnapshot();
wrapper.destroy();
wrapper.unmount();
});
}
},