Data-Driven Tests in JavaScript Using Mocha

added by JavaScript Kicks
12/10/2015 5:55:11 PM

2183 Views

If you are already familiar with the data-driven test pattern, you may wish to skip the proceeding section and jump straight to the sections on implementation. Sometimes it's desirable to run essentially the same test many times with many slightly different inputs. Imagine for a second that you're writing a function called isPrime that takes a number.


0 comments