@@ -8,9 +8,10 @@ describe("integration", () => {
88 it ( "generates the same matches in renderRoutes and matchRoutes" , ( ) => {
99 const rendered = [ ] ;
1010
11- const Comp = ( { match, route : { routes } } ) => (
12- rendered . push ( match ) , renderRoutes ( routes )
13- ) ;
11+ function Comp ( { match, route : { routes } } ) {
12+ rendered . push ( match ) ;
13+ return renderRoutes ( routes ) ;
14+ }
1415
1516 const routes = [
1617 {
@@ -60,9 +61,10 @@ describe("integration", () => {
6061 it ( "generates the same matches in renderRoutes and matchRoutes with pathless routes" , ( ) => {
6162 const rendered = [ ] ;
6263
63- const Comp = ( { match, route : { routes } } ) => (
64- rendered . push ( match ) , renderRoutes ( routes )
65- ) ;
64+ function Comp ( { match, route : { routes } } ) {
65+ rendered . push ( match ) ;
66+ return renderRoutes ( routes ) ;
67+ }
6668
6769 const routes = [
6870 {
@@ -110,9 +112,10 @@ describe("integration", () => {
110112 it ( "generates the same matches in renderRoutes and matchRoutes with routes using exact" , ( ) => {
111113 const rendered = [ ] ;
112114
113- const Comp = ( { match, route : { routes } } ) => (
114- rendered . push ( match ) , renderRoutes ( routes )
115- ) ;
115+ function Comp ( { match, route : { routes } } ) {
116+ rendered . push ( match ) ;
117+ return renderRoutes ( routes ) ;
118+ }
116119
117120 const routes = [
118121 // should skip
@@ -144,9 +147,10 @@ describe("integration", () => {
144147 it ( "generates the same matches in renderRoutes and matchRoutes with routes using exact + strict" , ( ) => {
145148 const rendered = [ ] ;
146149
147- const Comp = ( { match, route : { routes } } ) => (
148- rendered . push ( match ) , renderRoutes ( routes )
149- ) ;
150+ function Comp ( { match, route : { routes } } ) {
151+ rendered . push ( match ) ;
152+ return renderRoutes ( routes ) ;
153+ }
150154
151155 const routes = [
152156 // should match
0 commit comments