diff --git a/src/components/Card/Card.test.tsx b/src/components/Card/Card.test.tsx index 48681ad71..ec85d23b0 100644 --- a/src/components/Card/Card.test.tsx +++ b/src/components/Card/Card.test.tsx @@ -11,23 +11,23 @@ const itemWithImage = { title: 'This is a movie', duration: 120, cardImage: 'htt describe('', () => { it('renders card with video title', () => { - const { getByText } = renderWithRouter( ''} url="" />); + const { getByText } = renderWithRouter( ''} url="https://test.dummy.jwplayer.com" />); expect(getByText(/aa/i)).toBeTruthy(); }); it('renders tag with correct duration', () => { - const { getByText } = renderWithRouter( ''} url="" />); + const { getByText } = renderWithRouter( ''} url="https://test.dummy.jwplayer.com" />); expect(getByText(/2/i)).toBeTruthy(); }); it('renders the image with the image prop when valid', () => { - const { getByAltText } = renderWithRouter( ''} url="" />); + const { getByAltText } = renderWithRouter( ''} url="https://test.dummy.jwplayer.com" />); expect(getByAltText('This is a movie')).toHaveAttribute('src', 'http://movie.jpg?width=320'); }); it('makes the image visible after load', () => { - const { getByAltText } = renderWithRouter( ''} url="" />); + const { getByAltText } = renderWithRouter( ''} url="https://test.dummy.jwplayer.com" />); expect(getByAltText('This is a movie')).toHaveAttribute('src', 'http://movie.jpg?width=320'); expect(getByAltText('This is a movie')).toHaveStyle({ opacity: 0 });