New issue 17 by jaco...@google.com: Leaving out the arg to throwsError
causes bad error message
http://code.google.com/p/google-js-test/issues/detail?id=17
This snippet:
var throwException = function() {
throw {
name: 'SomeException'
}
}
expectThat(throwException, throwsError());
Causes this sub-optimal output:
array_matchers_test.js:39
TypeError: Cannot call method 'test' of undefined