I just found
https://github.com/jasmine/jasmine/issues/626 after a bug bit me on one of my tests. The issue was closed but I'm asking that it be reconsidered.
The gist of it is that for asynchronous tests, it can be useful to tell a test how many assertions it expects in case some of your callbacks don't get called.
Here's an extremly simplified example: the test below should fail but ends up passing because I forgot to define the done parameter. A similar case just bit me on a project, so I googled for the expected assertion count feature and found that feature request which has been closed and infews said to ask here if I felt strongly that this feature should be added.
it('should check my variable after a timeout', function() {
var val = true;
setTimeout(function(){
expect(val).toBe(false);
done();
}, 0);
});
For the example above, you'll get an error somewhere in your log that done is not defined, which is helpful and should help you (still doesn't tell you that the test failed in your test results though). However, in my case, the callback was never being called because my widget under was being destroyed in the afterEach(), therefore, all the event handlers associated with it were never called.
Thanks,