Skip to content

Commit bf04c06

Browse files
committed
Remove piTracker test
1 parent 20d9adc commit bf04c06

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

test/src/components/shell.test.tsx

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -110,24 +110,6 @@ describe('shell', () => {
110110
await screen.findByText('What is your question about?');
111111
expect(screen.queryAllByRole('navigation')).toHaveLength(0);
112112
});
113-
it('handles piTracker ', async () => {
114-
type WindowWithPiTracker = (typeof window) & {
115-
piTracker?: (path: string) => void;
116-
}
117-
const w = window as WindowWithPiTracker;
118-
const piTracker = jest.fn();
119-
120-
w.piTracker = (path: string) => piTracker(path);
121-
122-
BrowserRouter.mockImplementationOnce(({children}) => (
123-
<MR initialEntries={['/']}>{children}</MR>
124-
));
125-
126-
render(AppElement);
127-
128-
await waitFor(() => expect(piTracker).toHaveBeenCalled());
129-
delete w.piTracker;
130-
});
131113
it('(skip to main content link) works', async () => {
132114
window.scrollBy = jest.fn();
133115
BrowserRouter.mockImplementationOnce(({children}) => (

0 commit comments

Comments
 (0)