@@ -23,7 +23,11 @@ describe('Navigation', () => {
2323
2424 const children = [ ...container . firstElementChild . children ] ;
2525
26- const [ prev2 , prev , drillUp , next , next2 ] = children ;
26+ const prev2 = children [ 0 ] ;
27+ const prev = children [ 1 ] ;
28+ const drillUp = children [ 2 ] ;
29+ const next = children [ 3 ] ;
30+ const next2 = children [ 4 ] ;
2731
2832 expect ( children ) . toHaveLength ( 5 ) ;
2933 expect ( prev2 ) . toHaveAttribute ( 'type' , 'button' ) ;
@@ -38,7 +42,9 @@ describe('Navigation', () => {
3842
3943 const children = [ ...container . firstElementChild . children ] ;
4044
41- const [ prev , drillUp , next ] = children ;
45+ const prev = children [ 0 ] ;
46+ const drillUp = children [ 1 ] ;
47+ const next = children [ 2 ] ;
4248
4349 expect ( children ) . toHaveLength ( 3 ) ;
4450 expect ( prev ) . toHaveAttribute ( 'type' , 'button' ) ;
@@ -98,7 +104,12 @@ describe('Navigation', () => {
98104 /> ,
99105 ) ;
100106
101- const [ prev2 , prev , , next , next2 ] = [ ...container . firstElementChild . children ] ;
107+ const children = [ ...container . firstElementChild . children ] ;
108+
109+ const prev2 = children [ 0 ] ;
110+ const prev = children [ 1 ] ;
111+ const next = children [ 3 ] ;
112+ const next2 = children [ 4 ] ;
102113
103114 expect ( prev2 ) . toHaveTextContent ( 'prev2Label' ) ;
104115 expect ( prev ) . toHaveTextContent ( 'prevLabel' ) ;
@@ -111,7 +122,9 @@ describe('Navigation', () => {
111122 < Navigation { ...defaultProps } navigationAriaLive = "polite" view = "month" /> ,
112123 ) ;
113124
114- const [ , , navigation ] = [ ...container . firstElementChild . children ] ;
125+ const children = [ ...container . firstElementChild . children ] ;
126+
127+ const navigation = children [ 2 ] ;
115128
116129 expect ( navigation ) . toHaveAttribute ( 'aria-live' , 'polite' ) ;
117130 } ) ;
@@ -129,7 +142,13 @@ describe('Navigation', () => {
129142 /> ,
130143 ) ;
131144
132- const [ prev2 , prev , navigation , next , next2 ] = [ ...container . firstElementChild . children ] ;
145+ const children = [ ...container . firstElementChild . children ] ;
146+
147+ const prev2 = children [ 0 ] ;
148+ const prev = children [ 1 ] ;
149+ const navigation = children [ 2 ] ;
150+ const next = children [ 3 ] ;
151+ const next2 = children [ 4 ] ;
133152
134153 expect ( prev2 ) . toHaveAccessibleName ( 'prev2AriaLabel' ) ;
135154 expect ( prev ) . toHaveAccessibleName ( 'prevAriaLabel' ) ;
0 commit comments