This repository has been archived by the owner on Aug 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3060 from bbc/MediaMessageRefactor
Refactored Message component to support AV streams expired message
- Loading branch information
Showing
8 changed files
with
36 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
...ia-player/src/MediaMessage/index.test.jsx → ...d-media-player/src/Message/index.test.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
import React from 'react'; | ||
import { render } from '@testing-library/react'; | ||
import MediaMessage from './index'; | ||
import Message from './index'; | ||
import '@testing-library/jest-dom/extend-expect'; | ||
|
||
it('should display the media message', () => { | ||
const { getByText } = render( | ||
<MediaMessage | ||
<Message | ||
service="news" | ||
noJsMessage="Please enable Javascript or try a different browser" | ||
message="Please enable Javascript or try a different browser" | ||
placeholderSrc="http://foo.bar/placeholder.png" | ||
placeholderSrcset="http://foo.bar/placeholder.png" | ||
/>, | ||
); | ||
const mediaMessage = getByText( | ||
const message = getByText( | ||
'Please enable Javascript or try a different browser', | ||
); | ||
expect(mediaMessage).toBeInTheDocument(); | ||
expect(message).toBeInTheDocument(); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters