Skip to content

Instantly share code, notes, and snippets.

@cliffano
Created May 9, 2012 02:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cliffano/2641397 to your computer and use it in GitHub Desktop.
Save cliffano/2641397 to your computer and use it in GitHub Desktop.
Mocha issue #414 example
var should = require('should');
function _something(cb) {
cb();
}
describe('foo', function () {
describe('bar', function () {
it('should do something', function (done) {
var x = {};
_something(function () {
x.foo = 'bar';
done();
});
x.foo.should.equal('bar1');
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment