yaymukund/grunt-simple-mocha — pull request #12 by geddesign (2013-01-07 21:30:46+00:00)
Title: Support requiring assertion libs

Mocha's CLI allows you to pass a `--require` option for including your assertion library (should, chai, expect etc) so you don't have to require it in every single test.

Mocha's programmatic interface currently doesn't do anything with the "require" option. This pull request shims in support for loading your assertion lib by setting the `require` option. In the future if/when Mocha supports this option, we can drop these few lines and stay completely backwards compatible.

Closes #11