We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f188259 commit cb1cb66Copy full SHA for cb1cb66
test/index.js
@@ -31,6 +31,20 @@ describe('render-to-string', () => {
31
32
expect(rendered).to.equal(expected);
33
});
34
+
35
+ it('should omit functions', () => {
36
+ let rendered = render(<div a={()=>{}} b={function(){}} />),
37
+ expected = `<div></div>`;
38
39
+ expect(rendered).to.equal(expected);
40
+ });
41
42
+ it('should encode entities', () => {
43
+ let rendered = render(<div a={'"<>&'}>{'"<>&'}</div>),
44
+ expected = `<div a=""<>&">"<>&</div>`;
45
46
47
48
49
50
describe('Functional Components', () => {
0 commit comments