HackingWithReact icon indicating copy to clipboard operation
HackingWithReact copied to clipboard

1 test failed

Open perfectfoolish opened this issue 9 years ago • 1 comments

qq20160427-0 2x

perfectfoolish avatar Apr 27 '16 13:04 perfectfoolish

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);

    });

j-quelly avatar Jul 14 '16 21:07 j-quelly