SRGSSR / pillarbox-web

Pillarbox is a versatile media playback ecosystem engineered for the web.
https://srgssr.github.io/pillarbox-web-demo/
MIT License
12 stars 1 forks source link

refactor(data-provider): readability of the getMediaCompositionByUrn function #116

Closed amtins closed 9 months ago

amtins commented 9 months ago

Description

This change improves the readability of the getMediaCompositionByUrn function in the DataProvider class. It also facilitates unit testing in the event of a change.

Changes made

github-actions[bot] commented 9 months ago

Coverage report

St.:grey_question:
Category Percentage Covered / Total
🟒 Statements
98.36% (-0% πŸ”»)
480/488
🟒 Branches 93.42% 227/243
🟒 Functions 100% 134/134
🟒 Lines
99.14% (-0% πŸ”»)
463/467

Test suite run success

142 tests passing in 9 suites.

Report generated by πŸ§ͺjest coverage report action from 74961f9292e6f9cb2a5fe441dc637153ebd14d88