@@ -5,7 +5,7 @@ import { getTextContent } from '../getTextContent';
5
5
6
6
test ( 'getTextContent with simple content' , ( ) => {
7
7
const view = render ( < Text > Hello world</ Text > ) ;
8
- expect ( getTextContent ( view . container ) ) . toBe ( 'Hello world' ) ;
8
+ expect ( getTextContent ( view . root ) ) . toBe ( 'Hello world' ) ;
9
9
} ) ;
10
10
11
11
test ( 'getTextContent with null element' , ( ) => {
@@ -18,7 +18,7 @@ test('getTextContent with single nested content', () => {
18
18
< Text > Hello world</ Text >
19
19
</ Text >
20
20
) ;
21
- expect ( getTextContent ( view . container ) ) . toBe ( 'Hello world' ) ;
21
+ expect ( getTextContent ( view . root ) ) . toBe ( 'Hello world' ) ;
22
22
} ) ;
23
23
24
24
test ( 'getTextContent with multiple nested content' , ( ) => {
@@ -27,7 +27,7 @@ test('getTextContent with multiple nested content', () => {
27
27
< Text > Hello</ Text > < Text > world</ Text >
28
28
</ Text >
29
29
) ;
30
- expect ( getTextContent ( view . container ) ) . toBe ( 'Hello world' ) ;
30
+ expect ( getTextContent ( view . root ) ) . toBe ( 'Hello world' ) ;
31
31
} ) ;
32
32
33
33
test ( 'getTextContent with multiple number content' , ( ) => {
@@ -36,7 +36,7 @@ test('getTextContent with multiple number content', () => {
36
36
< Text > Hello</ Text > < Text > world</ Text > < Text > { 100 } </ Text >
37
37
</ Text >
38
38
) ;
39
- expect ( getTextContent ( view . container ) ) . toBe ( 'Hello world 100' ) ;
39
+ expect ( getTextContent ( view . root ) ) . toBe ( 'Hello world 100' ) ;
40
40
} ) ;
41
41
42
42
test ( 'getTextContent with multiple boolean content' , ( ) => {
@@ -45,5 +45,5 @@ test('getTextContent with multiple boolean content', () => {
45
45
< Text > Hello{ false } </ Text > < Text > { true } world</ Text >
46
46
</ Text >
47
47
) ;
48
- expect ( getTextContent ( view . container ) ) . toBe ( 'Hello world' ) ;
48
+ expect ( getTextContent ( view . root ) ) . toBe ( 'Hello world' ) ;
49
49
} ) ;
0 commit comments