Archive for the ‘mocha’ Category

How to Test Your JavaScript with Selenium WebDriver and Mocha

Posted on: No Comments
This article was originally published on TestProject. In case you are looking to write a functional test in JavaScript, the following tutorial provides UI automation engineers with the perfect structural reference material for JavaScript testing with S...

Sinon Tutorial: JavaScript Testing with Mocks, Spies & Stubs

Posted on: No Comments
This article was peer reviewed by Mark Brown and MarcTowler. Thanks to all of SitePoint's peer reviewers for making SitePoint content the best it can be! One of the biggest stumbling blocks when writing unit tests is what to do when you have code that'...

Unit Test Your JavaScript Using Mocha and Chai

Posted on: No Comments
Have you ever made some changes to your code, and later found it caused something else to break? I'm sure most of us have. This is almost inevitable, especially when you have a larger amount of code. One thing depends on another, and then changing it b...