This requires two new tests, one in each of AppointmentFormLoader and AppointmentForm, and updating existing tests in AppointmentForm to provide a default value of the prop:
- Add the following test in test/AppointmentFormLoader.js. What's of interest here is that we test any props that are passed through, not just a customer prop. I find this a useful habit for all components of this nature: it makes them less brittle because what you're passing through is not their concern. The primary concern of this component should be loading data. I'm using a prop named testProp just to signify that the identity of the prop isn't important: every prop should be passed through:
it('passes props through to ...