department-of-veterans-affairs / va-mobile-library

https://department-of-veterans-affairs.github.io/va-mobile-library/
ISC License
1 stars 0 forks source link

Link/Icon - Update unit tests related to crash fix defensive code changes #574

Open TimRoe opened 3 weeks ago

TimRoe commented 3 weeks ago

Description

This is a follow-up ticket to changes from PR #573 and associated with flagship ticket 9064. Functional enhancements/adjustments were made with that ticket that did not receive corresponding unit test additions due to the time constraints to ensure the changes themselves were available to flagship in a timely manner such that they can make the next flagship release to validate if the changes address the underlying crashing problem.

Acceptance Criteria

- [ ] Add/update `useExternalLink` unit tests to validate the new analytics/promise failure cases - With `http` URLs - With non-`http` URLs - [ ] Add Icon unit tests - For new `noIcon` prop for null passthrough - For new `alignWithTextLineHeight` prop that wraps the icon in a View that keeps it visually aligned with text of line height sent - [ ] Add/update Link unit tests - No clear of explicit needed updates, but potentially something around the Icon changes and Spacer separating - May be able to remove some tests that are now within Icon due to the changes