testing-library / vue-testing-library

🦎 Simple and complete Vue.js testing utilities that encourage good testing practices.
http://testing-library.com/vue
MIT License
1.08k stars 109 forks source link

feat: use "object literal" instead of "switch" condition #285

Closed AleTid5 closed 1 year ago

AleTid5 commented 2 years ago

Description

The file fire-event.js had a switch statement to handle the fireEvent.update function. In this PR the file was moved into a folder called "fire-event" and a new File called "input-type-actions.js" has been created. In this file, the previous switch logic has been moved and adapted in order to use an Object literal pattern.

Changes