Financial-Times / x-dash

:x::heavy_minus_sign::newspaper: shared front-end components for FT.com and the FT Apps
https://financial-times.github.io/x-dash
38 stars 6 forks source link

ACC-2349 test(x-gift-article): adds basic unit tests #705

Closed jamesr101 closed 1 year ago

jamesr101 commented 1 year ago

Jira ticket ---> https://financialtimes.atlassian.net/browse/ACC-2349

This PR adds basic unit tests to the x-gift-article component, as it was spotted that no tests currently exist. This is not a 100% full coverage (as its quite difficult to test everything with the component). However, this covers the key features of:

To run tests, please run npm run test You can run, just these unit tests for x-gift-artcle with jest ./components/x-gift-article/__tests__/* --verbose