Skip to content

Commit

Permalink
Add failing iframe test
Browse files Browse the repository at this point in the history
  • Loading branch information
iamdustan committed Oct 10, 2017
1 parent 20471d6 commit a276ffc
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/renderers/dom/shared/__tests__/ReactServerRendering-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,19 @@ describe('ReactDOMServer', () => {
'Objects are not valid as a React child (found: object with keys {x})',
);
});

it('should not throw on <iframe /> with style attribute', () => {
expect(
() => ReactDOMServer.renderToString(<iframe style="border:none;" />)
).not.toThrow();

expect(
ReactDOMServer.renderToString(<iframe style="border:none;" />),
).toBe(
'<iframe src"border:none;"></iframe>',
);
});

});

describe('renderToStaticMarkup', () => {
Expand Down

0 comments on commit a276ffc

Please sign in to comment.