diff --git a/test/shared/h.js b/test/shared/h.js index 50000deecd..9a58637a07 100644 --- a/test/shared/h.js +++ b/test/shared/h.js @@ -208,4 +208,13 @@ describe('h(jsx)', () => { .with.property('children') .that.deep.equals(['onetwothree']); }); + + it('should not merge children of components', () => { + let Component = ({children}) => children; + let r = h(Component, null, 'x', 'y'); + + expect(r).to.be.an('object') + .with.property('children') + .that.deep.equals(['x', 'y']); + }); });