visionmedia/mocha — Issue #217: How does mocha do asynchronous tests in browser?
Author: deepinsource
Created: 2012-01-16 16:06:19+00:00
State: open

var a = 10;
setTimeout(function(){ a = 20; }, 0) // don't change here

// What does mocha do here ???
// Does mocha have 'stop' method like qunit ?

assert(a === 20);