Does tape intentionally not fire end event when there is a plan error?
Example:
var test = require('tape');
test.createStream({ objectMode: true }).on('end', function (){
console.log('ok');
});
test('fibwibblers and xyrscawlers', function (t) {
t.plan(3);
t.ok(false);
});
This is trivially reproduceable and seems like a clear bug; end should be emitted when there's a plan failure too. I'm unable to quickly come up with a solution, however.
Does tape intentionally not fire end event when there is a plan error?
Example:
Won't output "ok"