Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(pillarbox-monitoring): inconsistent error name value #284

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

amtins
Copy link
Member

@amtins amtins commented Nov 18, 2024

Description

Fixes #283, by modifying the value of the error name sent, allowing clearer errors when consumed by other tools.

This modification supports the properties as defined by the WHATWG as well as the two custom properties provided by video.js which are MEDIA_ERR_CUSTOM and MEDIA_ERR_ENCRYPTED.

Changes made

  • add a static method for setting the value of the error name
  • add mock for MediaError

Fixes #283, by modifying the value of the error name sent, allowing clearer
errors when consumed by other tools.

This modification supports the properties as defined by the WHATWG as well as
the two custom properties provided by video.js which are `MEDIA_ERR_CUSTOM`
and `MEDIA_ERR_ENCRYPTED`.

- add a static method for setting the value of the error name
- add mock for `MediaError`
Copy link

PR Preview Action v1.4.8
🚀 Deployed preview to https://SRGSSR.github.io/pillarbox-web/pr-preview/pr-284/
on branch gh-pages at 2024-11-18 16:38 UTC

Copy link

Coverage report

St.
Category Percentage Covered / Total
🟢 Statements
98.11% (+0% 🔼)
832/848
🟢 Branches 93% 385/414
🟢 Functions
98.69% (+0.01% 🔼)
226/229
🟢 Lines
98.5% (+0% 🔼)
789/801

Test suite run success

247 tests passing in 10 suites.

Report generated by 🧪jest coverage report action from 722dde6

Copy link
Contributor

@jboix jboix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✏️ Draft
Development

Successfully merging this pull request may close these issues.

Inconsistent monitoring error message payload
2 participants