import React from '../../'; import ReactFragment from '../../lib/ReactFragment'; describe('ReactFragment', () => { it('should export .create', () => { expect(ReactFragment).to.have.property('create').that.is.a('function'); }); it('should create .children from a keyed object', () => { let obj = { a: ['hello',
, ], b: null, c: [null], d: 'text', e: [] }; let frag = ReactFragment.create(obj); expect(frag).to.deep.equal([ 'hello', , , 'text', ]); }); });