@@ -42,9 +42,7 @@ describe('ReactElementValidator', () => {
4242
4343expect ( ( ) => {
4444Component ( 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.' ) ;
4846} ) ;
4947
5048it ( 'warns for keys for arrays of elements with owner info' , ( ) => {
@@ -67,7 +65,7 @@ describe('ReactElementValidator', () => {
6765expect ( ( ) => {
6866ReactTestUtils . renderIntoDocument ( React . createElement ( ComponentWrapper ) ) ;
6967} ) . 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.' +
7169'\n\nCheck the render method of `InnerClass`. ' +
7270'It was passed a child from ComponentWrapper. ' ,
7371) ;
@@ -84,7 +82,7 @@ describe('ReactElementValidator', () => {
8482expect ( ( ) => {
8583ReactTestUtils . renderIntoDocument ( < Anonymous > { divs } </ Anonymous > ) ;
8684} ) . 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 ' +
8886'"key" prop. See https://fb.me/react-warning-keys for more information.\n' +
8987' in div (at **)' ,
9088) ;
@@ -96,7 +94,7 @@ describe('ReactElementValidator', () => {
9694expect ( ( ) => {
9795ReactTestUtils . renderIntoDocument ( < div > { divs } </ div > ) ;
9896} ) . 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 ' +
10098'"key" prop.\n\nCheck the top-level render call using <div>. See ' +
10199'https://fb.me/react-warning-keys for more information.\n' +
102100' in div (at **)' ,
@@ -117,7 +115,7 @@ describe('ReactElementValidator', () => {
117115}
118116
119117expect ( ( ) => 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 ' +
121119'"key" prop.\n\nCheck the render method of `Component`. See ' +
122120'https://fb.me/react-warning-keys for more information.\n' +
123121' in div (at **)\n' +
@@ -161,7 +159,7 @@ describe('ReactElementValidator', () => {
161159} ;
162160
163161expect ( ( ) => 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.' ,
165163) ;
166164} ) ;
167165
0 commit comments