HackingWithReact
HackingWithReact copied to clipboard
1 test failed

I have a temporary workaround for now via stackoverflow
it('fetches forks from GitHub', () => {
const rendered = TestUtils.renderIntoDocument(
<Detail params={{repo: 'react'}} />
);
setTimeout(function() {
const forks = TestUtils.scryRenderedDOMComponentsWithClass(rendered, 'github');
expect(forks.length).toEqual(30);
done();
}, 1000);
});