Issue 17 in google-js-test: Leaving out the arg to throwsError causes bad error message

2 views
Skip to first unread message

google-...@googlecode.com

unread,
Oct 9, 2011, 6:04:55 PM10/9/11
to google-...@googlegroups.com
Status: Accepted
Owner: jaco...@google.com
Labels: Type-Defect Priority-Medium

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


Reply all
Reply to author
Forward
0 new messages