jdg v1.0.0
A simple set of tools for comparing given and expected results. It is meant to be semantically clear and concise, returning a simple truthy response. This is ideal for testing.
Installation
To use jdg throughout your project:
$ npm install --save jdg
To only use jdg for testing, add jdg to your devDependencies and:
$ npm install jdg
Examples
A testing example using mocha and shouldjs:
var jdg = ;var should = ; ;
And an example using jdg outside of your testing suite:
var jdg = ; { attrs;}
Jdg's underlying helpers is
and get
are also exposed for use:
{ if jdgis // throw some error else var userAttrs = judgeget; // do something }
Issues
If you're using jdg and find a problem, feel free to report the issue here on Github. This helps determine if an issue has already been reported and if there is a fix already in progress.