diff --git a/index-test.js b/index-test.js index 802355a91..785bf813e 100644 --- a/index-test.js +++ b/index-test.js @@ -73,6 +73,20 @@ describe('reactElementToJSXString(ReactElement)', () => { ).toEqual('
'); }); + it("reactElementToJSXString( }} />)", () => { + expect( + reactElementToJSXString( + }} /> + ) + ).toEqual( + ` + }} + />` + ); + }); + it("reactElementToJSXString(React.createElement('div', {title: Symbol('hello \"you\"')})", () => { expect( reactElementToJSXString(