The Git tag for this section is chapter-3-exercises.
- Add a test to CustomerForm which specifies that the error state is cleared when the form is submitted again.
- Update the AppointmentForm tests to use jest.fn(), jest.spyOn(), and all of the new helpers in domManipulators.js and spyHelpers.js.
- Extend AppointmentForm so that it submits an appointment using a POST request to /appointments. Unlike with CustomerForm, you don't need to call json on the result body, or send back any parameters to onSave. The /appointments endpoint returns a 201 Created status without any body.
- Update the tests in AppointmentsDayView to use the new helpers from test/domManipulators.js.