diff --git a/test/index.js b/test/index.js
index 75e27cd6..7e8fea67 100644
--- a/test/index.js
+++ b/test/index.js
@@ -31,6 +31,20 @@ describe('render-to-string', () => {
expect(rendered).to.equal(expected);
});
+
+ it('should omit functions', () => {
+ let rendered = render(
{}} b={function(){}} />),
+ expected = `
`;
+
+ expect(rendered).to.equal(expected);
+ });
+
+ it('should encode entities', () => {
+ let rendered = render(
&'}>{'"<>&'}
),
+ expected = `
"<>&
`;
+
+ expect(rendered).to.equal(expected);
+ });
});
describe('Functional Components', () => {