Skip to content

Commit

Permalink
remove most watched route test
Browse files Browse the repository at this point in the history
  • Loading branch information
LilyL0u committed Jun 17, 2024
1 parent 068663c commit a850d95
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions src/app/routes/index.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -301,33 +301,6 @@ describe('Routes', () => {
).toBeInTheDocument();
});

it('should route to and render a most watched page', async () => {
process.env.SIMORGH_APP_ENV = 'local';
const pathname = '/pidgin/media/video';
fetchMock.mock(
'http://localhost/pidgin/mostwatched.json',
mostWatchedData,
);

const { getInitialData, pageType } = getMatchingRoute(pathname);
const { pageData } = await getInitialData({
path: pathname,
service: 'pidgin',
pageType,
});
await renderRouter({
pathname,
pageData,
pageType,
service: 'pidgin',
});
const EXPECTED_TITLE_RENDERED_IN_DOCUMENT = 'De one we dem don look';

expect(
await screen.findByText(EXPECTED_TITLE_RENDERED_IN_DOCUMENT),
).toBeInTheDocument();
});

it('should route to and render a media asset page', async () => {
process.env.SIMORGH_APP_ENV = 'local';
const pathname = '/yoruba/media-23256797';
Expand Down

0 comments on commit a850d95

Please sign in to comment.