A very simple Test Helper, framework independent.
Dexter is a Test Helper. With Dexter, you can mock functions by spying and faking to prevent their default functionality and set callbacks to create your assertions.
It's VERY simple to use and it doesn't mess with your JS environment. The goal is to keep it simple and clean.
It works both on Browser and Node environments, although if you run on it on a Browser, it will allow you to fake the XHR object, doing so you get control of your Ajax required tests to improve them for speed.
You can install Dexter via NPM.
npm install --save-dev dexter
You can install Dexter via Bower
bower install dexter
In an effort to maintain Dexter a reliable tool for JS tests, we keep the min coverage threshold on at least 80% of the code.
You can jump directly to the Dexter main functions:
Dexter is licensed under the MIT and GPL licenses, and it's hosted in Github. Below are some interesting links you might want to know.