@@ -42,9 +42,7 @@ describe('ReactElementValidator', () => {
42
42
43
43
expect ( ( ) => {
44
44
Component ( null , [ Component ( ) , Component ( ) ] ) ;
45
- } ) . toWarnDev (
46
- 'Each child in an array or iterator should have a unique "key" prop.' ,
47
- ) ;
45
+ } ) . toWarnDev ( 'Each child in a list should have a unique "key" prop.' ) ;
48
46
} ) ;
49
47
50
48
it ( 'warns for keys for arrays of elements with owner info' , ( ) => {
@@ -67,7 +65,7 @@ describe('ReactElementValidator', () => {
67
65
expect ( ( ) => {
68
66
ReactTestUtils . renderIntoDocument ( React . createElement ( ComponentWrapper ) ) ;
69
67
} ) . toWarnDev (
70
- 'Each child in an array or iterator should have a unique "key" prop.' +
68
+ 'Each child in a list should have a unique "key" prop.' +
71
69
'\n\nCheck the render method of `InnerClass`. ' +
72
70
'It was passed a child from ComponentWrapper. ' ,
73
71
) ;
@@ -84,7 +82,7 @@ describe('ReactElementValidator', () => {
84
82
expect ( ( ) => {
85
83
ReactTestUtils . renderIntoDocument ( < Anonymous > { divs } </ Anonymous > ) ;
86
84
} ) . toWarnDev (
87
- 'Warning: Each child in an array or iterator should have a unique ' +
85
+ 'Warning: Each child in a list should have a unique ' +
88
86
'"key" prop. See https://fb.me/react-warning-keys for more information.\n' +
89
87
' in div (at **)' ,
90
88
) ;
@@ -96,7 +94,7 @@ describe('ReactElementValidator', () => {
96
94
expect ( ( ) => {
97
95
ReactTestUtils . renderIntoDocument ( < div > { divs } </ div > ) ;
98
96
} ) . toWarnDev (
99
- 'Warning: Each child in an array or iterator should have a unique ' +
97
+ 'Warning: Each child in a list should have a unique ' +
100
98
'"key" prop.\n\nCheck the top-level render call using <div>. See ' +
101
99
'https://fb.me/react-warning-keys for more information.\n' +
102
100
' in div (at **)' ,
@@ -117,7 +115,7 @@ describe('ReactElementValidator', () => {
117
115
}
118
116
119
117
expect ( ( ) => ReactTestUtils . renderIntoDocument ( < GrandParent /> ) ) . toWarnDev (
120
- 'Warning: Each child in an array or iterator should have a unique ' +
118
+ 'Warning: Each child in a list should have a unique ' +
121
119
'"key" prop.\n\nCheck the render method of `Component`. See ' +
122
120
'https://fb.me/react-warning-keys for more information.\n' +
123
121
' in div (at **)\n' +
@@ -161,7 +159,7 @@ describe('ReactElementValidator', () => {
161
159
} ;
162
160
163
161
expect ( ( ) => Component ( null , iterable ) ) . toWarnDev (
164
- 'Each child in an array or iterator should have a unique "key" prop.' ,
162
+ 'Each child in a list should have a unique "key" prop.' ,
165
163
) ;
166
164
} ) ;
167
165
0 commit comments