pdiemert/ssa — Issue #1: this.callback does not work
Author: sugendran
Created: 2011-11-17 09:46:19+00:00
State: open

Test for using this.callback

function runSomething(callback){
setTimeout(function(){
callback(null, { val: 1 });
}, 500)
}

require("ssa").runSuite([{
test: "try the callback",
expect: function(err, data){
this.assert.isNull(err);
this.assert.equal(data.val, 1);
},
setup: function(){
runSomething(this.callback);
}
}]);