May 2019
Intermediate to advanced
496 pages
10h 38m
English
Bringing all of this chapter's work together involves adding a new route to App, and adding a new button to the search actions that are rendered by the CustomerSearch component:
it('passes a button to the CustomerSearch named View history', async () => { const button = childrenOf( renderSearchActionsForCustomer(customer) )[1]; expect(button.type).toEqual('button'); expect(button.props.role).toEqual('button'); ...Read now
Unlock full access