@@ -516,38 +516,38 @@ test('error message renders the element tree, preserving only helpful props', as
516
516
const view = render ( < View accessibilityViewIsModal key = "this is filtered" /> ) ;
517
517
518
518
expect ( ( ) => view . getByText ( / f o o / ) ) . toThrowErrorMatchingInlineSnapshot ( `
519
- "Unable to find an element with text: /foo/
519
+ "Unable to find an element with text: /foo/
520
520
521
- <View
522
- accessibilityViewIsModal={true}
523
- />"
524
- ` ) ;
521
+ <View
522
+ accessibilityViewIsModal={true}
523
+ />"
524
+ ` ) ;
525
525
526
526
expect ( ( ) => view . getAllByText ( / f o o / ) ) . toThrowErrorMatchingInlineSnapshot ( `
527
- "Unable to find an element with text: /foo/
527
+ "Unable to find an element with text: /foo/
528
528
529
- <View
530
- accessibilityViewIsModal={true}
531
- />"
532
- ` ) ;
529
+ <View
530
+ accessibilityViewIsModal={true}
531
+ />"
532
+ ` ) ;
533
533
534
534
await expect ( view . findByText ( / f o o / ) ) . rejects
535
535
. toThrowErrorMatchingInlineSnapshot ( `
536
- "Unable to find an element with text: /foo/
536
+ "Unable to find an element with text: /foo/
537
537
538
- <View
539
- accessibilityViewIsModal={true}
540
- />"
541
- ` ) ;
538
+ <View
539
+ accessibilityViewIsModal={true}
540
+ />"
541
+ ` ) ;
542
542
543
543
await expect ( view . findAllByText ( / f o o / ) ) . rejects
544
544
. toThrowErrorMatchingInlineSnapshot ( `
545
- "Unable to find an element with text: /foo/
545
+ "Unable to find an element with text: /foo/
546
546
547
- <View
548
- accessibilityViewIsModal={true}
549
- />"
550
- ` ) ;
547
+ <View
548
+ accessibilityViewIsModal={true}
549
+ />"
550
+ ` ) ;
551
551
} ) ;
552
552
553
553
test ( 'byText should return host component' , ( ) => {
0 commit comments