@@ -16,7 +16,6 @@ var ReactDOM;
1616var ReactFragment ;
1717
1818describe ( 'ReactFragment' , ( ) => {
19-
2019 beforeEach ( ( ) => {
2120 React = require ( 'react' ) ;
2221 ReactDOM = require ( 'react-dom' ) ;
@@ -33,9 +32,9 @@ describe('ReactFragment', () => {
3332 var container = document . createElement ( 'div' ) ;
3433 expect ( ( ) => ReactDOM . render ( element , container ) ) . toThrowError (
3534 'Objects are not valid as a React child (found: object with keys ' +
36- '{x, y, z}). If you meant to render a collection of children, use an ' +
37- 'array instead or wrap the object using createFragment(object) from ' +
38- 'the React add-ons.'
35+ '{x, y, z}). If you meant to render a collection of children, use an ' +
36+ 'array instead or wrap the object using createFragment(object) from ' +
37+ 'the React add-ons.' ,
3938 ) ;
4039 } ) ;
4140
@@ -53,9 +52,9 @@ describe('ReactFragment', () => {
5352 var container = document . createElement ( 'div' ) ;
5453 expect ( ( ) => ReactDOM . render ( < Foo /> , container ) ) . toThrowError (
5554 'Objects are not valid as a React child (found: object with keys ' +
56- '{a, b, c}). If you meant to render a collection of children, use an ' +
57- 'array instead or wrap the object using createFragment(object) from ' +
58- 'the React add-ons.\n\nCheck the render method of `Foo`.'
55+ '{a, b, c}). If you meant to render a collection of children, use an ' +
56+ 'array instead or wrap the object using createFragment(object) from ' +
57+ 'the React add-ons.\n\nCheck the render method of `Foo`.' ,
5958 ) ;
6059 } ) ;
6160
@@ -66,7 +65,7 @@ describe('ReactFragment', () => {
6665
6766 expectDev ( console . error . calls . count ( ) ) . toBe ( 1 ) ;
6867 expectDev ( console . error . calls . argsFor ( 0 ) [ 0 ] ) . toContain (
69- 'Child objects should have non-numeric keys so ordering is preserved.'
68+ 'Child objects should have non-numeric keys so ordering is preserved.' ,
7069 ) ;
7170 } ) ;
7271
@@ -75,7 +74,7 @@ describe('ReactFragment', () => {
7574 ReactFragment . create ( null ) ;
7675 expectDev ( console . error . calls . count ( ) ) . toBe ( 1 ) ;
7776 expectDev ( console . error . calls . argsFor ( 0 ) [ 0 ] ) . toContain (
78- 'React.addons.createFragment only accepts a single object.'
77+ 'React.addons.createFragment only accepts a single object.' ,
7978 ) ;
8079 } ) ;
8180
@@ -84,7 +83,7 @@ describe('ReactFragment', () => {
8483 ReactFragment . create ( [ ] ) ;
8584 expectDev ( console . error . calls . count ( ) ) . toBe ( 1 ) ;
8685 expectDev ( console . error . calls . argsFor ( 0 ) [ 0 ] ) . toContain (
87- 'React.addons.createFragment only accepts a single object.'
86+ 'React.addons.createFragment only accepts a single object.' ,
8887 ) ;
8988 } ) ;
9089
@@ -94,8 +93,7 @@ describe('ReactFragment', () => {
9493 expectDev ( console . error . calls . count ( ) ) . toBe ( 1 ) ;
9594 expectDev ( console . error . calls . argsFor ( 0 ) [ 0 ] ) . toContain (
9695 'React.addons.createFragment does not accept a ReactElement without a ' +
97- 'wrapper object.'
96+ 'wrapper object.' ,
9897 ) ;
9998 } ) ;
100-
10199} ) ;
0 commit comments