Skip to content

Commit

Permalink
Remove test for variant topic ID as scriptSwitchId is now removed
Browse files Browse the repository at this point in the history
  • Loading branch information
amoore108 committed Jan 22, 2025
1 parent 6a63400 commit 3f7302f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
12 changes: 0 additions & 12 deletions src/app/legacy/containers/Header/index.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -199,18 +199,6 @@ describe(`Header`, () => {
});
});

it('should not render script link on Topic page when missing variant topic ID', () => {
const { container } = HeaderContainerWithContext({
renderOptions: {
pageType: TOPIC_PAGE,
service: 'serbian',
variant: 'cyr',
},
});

expect(container.querySelectorAll(scriptLinkSelector).length).toBe(0);
});

it('should focus on consent banner heading on mount', () => {
const initialFocusElement = document.activeElement;
HeaderContainerWithContext({
Expand Down
1 change: 0 additions & 1 deletion src/app/routes/topic/getInitialData/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ describe('get initial data for topic', () => {
expect(curations[0].summaries[0].link).toEqual('mock-link');
expect(curations[0].summaries[0].imageAlt).toEqual('mock-image-alt');
expect(curations[0].summaries[0].id).toEqual('54321');
expect(pageData.scriptSwitchId).toBeNull();
expect(pageData.activePage).toEqual(1);
expect(pageData.pageCount).toEqual(14);
});
Expand Down

0 comments on commit 3f7302f

Please sign in to comment.