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
+1 -1
View File
@@ -26,7 +26,7 @@ test('simple columns confirm & cancel event', () => {
wrapper.find('.van-picker__cancel').trigger('click');
expect(wrapper.emitted('confirm')[0]).toEqual(['1990', 0]);
expect(wrapper.emitted('cancel')[0]).toEqual(['1990', 0]);
wrapper.destroy();
wrapper.unmount();
});
test('multiple columns confirm & cancel event', () => {