Jasmine Matching Return Value
I got some typical jasmine code such as:

    expect(actual).someMatcher(expected);

Is there a way to determine whether this matching succeed or failed (programmatically)? Depending on the result, I might want to do a certain operation afterwards. For example, if it fails, write the actual to disk.

Using the matcher's return value doesn't seem to work. It always returns undefined.

Thanks!
Jasmine Matching Return Value
===

I got some typical jasmine code such as:

    expect(actual).someMatcher(expected);

Is there a way to determine whether this matching succeed or failed (programmatically)? Depending on the result, I might want to do a certain operation afterwards. For example, if it fails, write the actual to disk.

Using the matcher's return value doesn't seem to work. It always returns undefined.

Thanks!