File tree Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Original file line number Diff line number Diff line change @@ -110,24 +110,6 @@ describe('shell', () => {
110
110
await screen . findByText ( 'What is your question about?' ) ;
111
111
expect ( screen . queryAllByRole ( 'navigation' ) ) . toHaveLength ( 0 ) ;
112
112
} ) ;
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
- } ) ;
131
113
it ( '(skip to main content link) works' , async ( ) => {
132
114
window . scrollBy = jest . fn ( ) ;
133
115
BrowserRouter . mockImplementationOnce ( ( { children} ) => (
You can’t perform that action at this time.
0 commit comments