visionmedia/mocha — pull request #1077 by Raynos (2013-12-19 18:56:26+00:00)
Title: Expose the globals as modules in mocha.

This change allows you to write mocha tests without referencing globals in your test files.

This is useful when you want to lint your tests and your linter complains about globals.

For example

```js
var assert = require("assert")
var describe = require("mocha/describe")
var it = require("mocha/it")
describe('Array', function(){
describe('#indexOf()', function(){
it('should return -1 when the value is not present', function(){
assert.equal(-1, [1,2,3].indexOf(5));
assert.equal(-1, [1,2,3].indexOf(0));
})
})
})
```

This also has a benefit of being able to write mocha tests in either the BDD or the TDD style by just requiring either `test` or `it` and the command line setting of the interface is irrelevant.