@@ -300,9 +300,13 @@ describe("<Links />", () => {
300300 } ) ;
301301
302302 let { container } = render (
303- < FrameworkContext . Provider value = { context } >
304- < Links nonce = "test-nonce" />
305- </ FrameworkContext . Provider > ,
303+ < DataRouterStateContext . Provider
304+ value = { { matches : [ ] , errors : null } as any }
305+ >
306+ < FrameworkContext . Provider value = { context } >
307+ < Links nonce = "test-nonce" />
308+ </ FrameworkContext . Provider >
309+ </ DataRouterStateContext . Provider > ,
306310 ) ;
307311
308312 let style = container . querySelector ( "style" ) ;
@@ -317,9 +321,13 @@ describe("<Links />", () => {
317321 } ) ;
318322
319323 let { container } = render (
320- < FrameworkContext . Provider value = { context } >
321- < Links nonce = "test-nonce" />
322- </ FrameworkContext . Provider > ,
324+ < DataRouterStateContext . Provider
325+ value = { { matches : [ ] , errors : null } as any }
326+ >
327+ < FrameworkContext . Provider value = { context } >
328+ < Links nonce = "test-nonce" />
329+ </ FrameworkContext . Provider >
330+ </ DataRouterStateContext . Provider > ,
323331 ) ;
324332
325333 let link = container . querySelector ( "link[rel='stylesheet']" ) ;
0 commit comments