@@ -70,7 +70,6 @@ describe('AppLocalizationProvider', () => {
7070 await screen . findByText ( translatedText ( 'en-US' ) )
7171 ) . toBeInTheDocument ( ) ;
7272 expect ( document . documentElement ) . toHaveAttribute ( 'lang' , 'en-US' ) ;
73- // $FlowExpectError Our version of flow doesn't know about document.dir
7473 expect ( document . dir ) . toBe ( 'ltr' ) ;
7574
7675 // Now we're testing the LTR pseudo-localization.
@@ -79,7 +78,6 @@ describe('AppLocalizationProvider', () => {
7978 } ) ;
8079 expect ( await screen . findByText ( 'Ŧħīş īş ḗḗƞ-ŬŞ Ŧḗḗẋŧ' ) ) . toBeInTheDocument ( ) ;
8180 expect ( document . documentElement ) . toHaveAttribute ( 'lang' , 'en-US' ) ;
82- // $FlowExpectError Our version of flow doesn't know about document.dir
8381 expect ( document . dir ) . toBe ( 'ltr' ) ;
8482
8583 // And now the RTL pseudo-localization.
@@ -88,7 +86,6 @@ describe('AppLocalizationProvider', () => {
8886 } ) ;
8987 expect ( await screen . findByText ( / ⊥ ɥ ı s ı s ǝ u - ∩ S ⊥ ǝ x ʇ / ) ) . toBeInTheDocument ( ) ;
9088 expect ( document . documentElement ) . toHaveAttribute ( 'lang' , 'en-US' ) ;
91- // $FlowExpectError Our version of flow doesn't know about document.dir
9289 expect ( document . dir ) . toBe ( 'rtl' ) ;
9390
9491 // Back to no pseudo-localization
@@ -99,7 +96,6 @@ describe('AppLocalizationProvider', () => {
9996 await screen . findByText ( translatedText ( 'en-US' ) )
10097 ) . toBeInTheDocument ( ) ;
10198 expect ( document . documentElement ) . toHaveAttribute ( 'lang' , 'en-US' ) ;
102- // $FlowExpectError Our version of flow doesn't know about document.dir
10399 expect ( document . dir ) . toBe ( 'ltr' ) ;
104100 } ) ;
105101
@@ -136,7 +132,6 @@ describe('AppLocalizationProvider', () => {
136132 await screen . findByText ( translatedText ( 'en-US' ) )
137133 ) . toBeInTheDocument ( ) ;
138134 expect ( document . documentElement ) . toHaveAttribute ( 'lang' , 'en-US' ) ;
139- // $FlowExpectError Our version of flow doesn't know about document.dir
140135 expect ( document . dir ) . toBe ( 'ltr' ) ;
141136
142137 // Switch to german
@@ -146,7 +141,6 @@ describe('AppLocalizationProvider', () => {
146141 } ) ;
147142 expect ( await screen . findByText ( translatedText ( 'de' ) ) ) . toBeInTheDocument ( ) ;
148143 expect ( document . documentElement ) . toHaveAttribute ( 'lang' , 'de' ) ;
149- // $FlowExpectError Our version of flow doesn't know about document.dir
150144 expect ( document . dir ) . toBe ( 'ltr' ) ;
151145 } ) ;
152146
0 commit comments