例如,
asyncTest('test1', function() {
var callback = function() {
throw new TypeError('foobar'); // <-- i want to evaluate this error is being thrown
}
throws(
function() {
anAsyncFunction(callback);
}
);
});
问题是,把throws()放在哪里,把start()放在哪里?
感谢。