diff --git a/src/isomorphic/children/__tests__/onlyChild-test.js b/src/isomorphic/children/__tests__/onlyChild-test.js index 8de1c9b807..9dad017e39 100644 --- a/src/isomorphic/children/__tests__/onlyChild-test.js +++ b/src/isomorphic/children/__tests__/onlyChild-test.js @@ -83,15 +83,12 @@ describe('onlyChild', () => { }).not.toThrow(); }); - it('should return the only child', () => { - expect(function() { - var instance = - - - ; - onlyChild(instance.props.children); - }).not.toThrow(); + var instance = + + + ; + expect(onlyChild(instance.props.children)).toEqual(); }); });