Go in to your Penguins vs. Communists project and add unit tests using:

  • The Karma test runner
  • The Jasmine test framework
  • PhantomJS as a headless browser

Your unit tests should cover:

  • The sendNuke function
  • The onHit function
  • The onMiss function