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.
2 parents 5d6a2c4 + 02f98c5 commit 465dacbCopy full SHA for 465dacb
test/shared/h.js
@@ -208,4 +208,13 @@ describe('h(jsx)', () => {
208
.with.property('children')
209
.that.deep.equals(['onetwothree']);
210
});
211
+
212
+ it('should not merge children of components', () => {
213
+ let Component = ({children}) => children;
214
+ let r = h(Component, null, 'x', 'y');
215
216
+ expect(r).to.be.an('object')
217
+ .with.property('children')
218
+ .that.deep.equals(['x', 'y']);
219
+ });
220
0 commit comments