import * as React from 'react' import { create } from 'react-test-renderer' import { Combine } from '../src' describe('Combine', () => { it("combines multpile controller outputs", () => { let ConstantController = ({ children, ...other }) => { return children(other) } const renderer = create( } y={children => } > {({x, y}) =>
{JSON.stringify([x, y])}
}
); expect(renderer.toJSON().children[0]).toEqual(JSON.stringify([{a: 1}, { b: 2}])) }) })