@@ -5,7 +5,7 @@ import { getTextContent } from '../getTextContent';
55
66test ( 'getTextContent with simple content' , ( ) => {
77 const view = render ( < Text > Hello world</ Text > ) ;
8- expect ( getTextContent ( view . container ) ) . toBe ( 'Hello world' ) ;
8+ expect ( getTextContent ( view . root ) ) . toBe ( 'Hello world' ) ;
99} ) ;
1010
1111test ( 'getTextContent with null element' , ( ) => {
@@ -18,7 +18,7 @@ test('getTextContent with single nested content', () => {
1818 < Text > Hello world</ Text >
1919 </ Text >
2020 ) ;
21- expect ( getTextContent ( view . container ) ) . toBe ( 'Hello world' ) ;
21+ expect ( getTextContent ( view . root ) ) . toBe ( 'Hello world' ) ;
2222} ) ;
2323
2424test ( 'getTextContent with multiple nested content' , ( ) => {
@@ -27,7 +27,7 @@ test('getTextContent with multiple nested content', () => {
2727 < Text > Hello</ Text > < Text > world</ Text >
2828 </ Text >
2929 ) ;
30- expect ( getTextContent ( view . container ) ) . toBe ( 'Hello world' ) ;
30+ expect ( getTextContent ( view . root ) ) . toBe ( 'Hello world' ) ;
3131} ) ;
3232
3333test ( 'getTextContent with multiple number content' , ( ) => {
@@ -36,7 +36,7 @@ test('getTextContent with multiple number content', () => {
3636 < Text > Hello</ Text > < Text > world</ Text > < Text > { 100 } </ Text >
3737 </ Text >
3838 ) ;
39- expect ( getTextContent ( view . container ) ) . toBe ( 'Hello world 100' ) ;
39+ expect ( getTextContent ( view . root ) ) . toBe ( 'Hello world 100' ) ;
4040} ) ;
4141
4242test ( 'getTextContent with multiple boolean content' , ( ) => {
@@ -45,5 +45,5 @@ test('getTextContent with multiple boolean content', () => {
4545 < Text > Hello{ false } </ Text > < Text > { true } world</ Text >
4646 </ Text >
4747 ) ;
48- expect ( getTextContent ( view . container ) ) . toBe ( 'Hello world' ) ;
48+ expect ( getTextContent ( view . root ) ) . toBe ( 'Hello world' ) ;
4949} ) ;
0 commit comments