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 5964a5c commit 49d46ddCopy full SHA for 49d46dd
test/render.js
@@ -85,6 +85,16 @@ describe('render', () => {
85
});
86
87
88
+ it('should throw for invalid nodeName values', () => {
89
+ expect(() => render(h('div'))).not.to.throw();
90
+ expect(() => render(h('x-💩'))).not.to.throw();
91
+ expect(() => render(h('a b'))).to.throw(/<a b>/);
92
+ expect(() => render(h('a\0b'))).to.throw(/<a\0b>/);
93
+ expect(() => render(h('a>'))).to.throw(/<a>>/);
94
+ expect(() => render(h('<'))).to.throw(/<<>/);
95
+ expect(() => render(h('"'))).to.throw(/<">/);
96
+ });
97
+
98
it('should collapse collapsible attributes', () => {
99
let rendered = render(<div class="" style="" foo={true} bar />),
100
expected = `<div class style foo bar></div>`;
0 commit comments