Check out a free preview of the full Creating an Open Source JavaScript Library on Github course:
The "Exercise: Writing Unit Tests" Lesson is part of the full, Creating an Open Source JavaScript Library on Github course featured in this preview video. Here's what you'd learn in this lesson:

In this exercise, you will write unit tests that cover the starWarsNames.all() and starWarsNames.random() methods. To start, Kent provides some pseudo-code and a few hints. He also talks a little about the dont-break NPM package that verifies changes to one project don’t break dependent projects. - http://slides.com/kentcdodds/write-oss#/8/2

Get Unlimited Access Now