nasa / cmr-stac

Other
54 stars 21 forks source link

CMR-10221: Fixed double-rendering of items in browse route. #364

Closed doug-newman-nasa closed 4 weeks ago

doug-newman-nasa commented 1 month ago

The browse route will now only render one link with rel=item. If the collection has a curator-supplied STAC API it will use that as the link, otherwise it will insert the generic CMR-STAC based one. Added unit tests for browse.ts (there needs to be a lot more for existing functionality)

codecov-commenter commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 88.62%. Comparing base (2a46736) to head (e7cf17b).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #364 +/- ## ========================================== + Coverage 88.59% 88.62% +0.02% ========================================== Files 24 24 Lines 1166 1169 +3 Branches 257 257 ========================================== + Hits 1033 1036 +3 Misses 133 133 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.