Use spec built-in iteration
What does this MR do and why?
Instead of iterating over an array, this refactor uses the it.each
syntax to create a spec for each element in the array.
Screenshots or screen recordings
Nothing visual
How to set up and validate locally
- Checkout the repo
- Run
yarn jest ee/spec/frontend/security_dashboard/components/shared/vulnerability_report/vulnerability_report_spec.js
- All tests should pass
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #420056 (closed)