it 'should work without return values', (done) -> # gh-85
d = 0
task side_effect(a,b,c)
d = a + b + c
function errorizor(next)
next "ERR"
wait for side_effect 1, 2, 3
d.should.equal 6
error_happened = no
try
wait for errorizor()
catch e
error_happened = yes
e.should.equal "ERR"
error_happened.should.be.true
try
safe wait for errorizor()
catch e
require('should').fail 'did not expect an error'
d.should.equal 6
done()
Produced a call to a non existent $kcb function in the second try block.
The following test:
Produced a call to a non existent $kcb function in the second try block.