Skip to content

Use spec built-in iteration

Savas Vedova requested to merge 420056-prepare-layout-follow-up into master

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

  1. Checkout the repo
  2. Run yarn jest ee/spec/frontend/security_dashboard/components/shared/vulnerability_report/vulnerability_report_spec.js
  3. 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.

Related to #420056 (closed)

Merge request reports