Testing Simple Functions with Jest

For each piece of working code in the /src directory:

  1. Write tests for the code to assert its behavior in the /tests directory
  2. Refactor the code to use modern syntax while keeping the tests passing