How to Write Your First Unit Test With Jasmine
Too Long; Didn't Read
In a previous article, I showed pseudocode examples of unit testing *pure functions*. I got an excellent question—so how do I start testing my code then? Let’s take a more practical look at the same, simple case for testing. The code we are going to test will work the same way on browser or Node.js. We will create a new file `./spec-spec-test.js that matches the convention inside the.spec/pure-functions folder.