Explanation message when jasmine's expect() fails


Is there a way to add an explanation message when an expect fails. I’m testing values of an array and when it fails, I see a meaning less message:

> expect(data[i]).toEqual(1);
Expected 0 to equal 1.

The jasmine folks have been arguing about a because function that could used but never implemented.


It seems we can pass a message to the toEqual like:

expect(data[i]).toEqual(1, 'something went wrong');

but this feature seems to be undocumented.