cloudkick/whiskey — pull request #37 by robert-chiniquy (2012-05-29 16:02:23+00:00)
Title: Adds an optional BDD testing idiom to whiskey

The 'whiskey' package now exports a 'bdd' symbol which can be required to enable BDD-style tests. The 'bdd' object wraps the exports object of the test module and translates the BDD tests into whiskey tests.

Such a test looks like:
``` javascript
var bdd = require('whiskey').bdd.init(exports);
var describe = bdd.describe;

describe('the bdd module', function(it) {
it('supports it(), expect(), and toEqual()', function(expect) {
expect(true).toEqual(true);
});
});
```