Sign Off the Refund Fix

Your fix is on its branch. Your saved check failed before the fix and passes after it, as does npm test. In Exercise: Fix the Refund, the course’s tests also checked both refund rules on many orders in the exercise’s extract of the shop’s code. Heading 5 of your project entry, “Sign-off notes”, is still empty, and it’s the part Grace asked for.

In this capstone review, you’ll turn your notes into a sign-off that Grace could put her name on, then talk Margaret through it. She built the refunds code, and she’ll question each step the way a senior colleague would before a fix goes any further. She’ll also ask about a case you haven’t tried yet. Start with what Grace needs to read.

Write the Sign-Off From Your Notes

A sign-off tells the people who rely on it whether they can trust this fix and why. Grace isn’t a developer, so she needs to know what happened to Nadia and that it won’t happen to the next customer. Margaret needs the evidence because she’ll be the next person to touch src/refunds/. One page can serve both if every claim is a plain sentence with its evidence after it.

Write your notes under heading 5 in this order. Give the verdict in one sentence and each remaining part in one short paragraph:

  1. Your verdict: Whether Grace can close issue #41 and what the fix doesn’t cover
  2. What Nadia saw, and how you made it happen every time
  3. The cause, with the checks that ruled other places out and the one that confirmed it
  4. The commit, how you found it and why it was made
  5. The fix, and what you checked before and after it
  6. Not checked yet: Anything you didn’t confirm with a run

Most of it is already in your map. Here’s the paragraph on what Nadia saw, written from the reproduction notes for both readers:

Locked learning resources

Join us and get access to thousands of tutorials and a community of expert JavaScript developers.

Unlock This Lesson

Already a member? Sign-In

Locked learning resources

The full lesson is for members only. Join us and get access to thousands of tutorials and a community of expert JavaScript developers.

Unlock This Lesson

Already a member? Sign-In

Become a Member to join the conversation.