Issue 16 in google-js-test: Bad error message with incorrect throwsError usage

1 view
Skip to first unread message

google-...@googlecode.com

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

New issue 16 by jaco...@google.com: Bad error message with incorrect
throwsError usage
http://code.google.com/p/google-js-test/issues/detail?id=16

The following (incorrect) snippet gives weird error output:

var throwException = function() {
throw {
name: 'SomeException'
}
}
expectThat(throwException(), throwsError());

The output looks like this:

[object Object]


Reply all
Reply to author
Forward
0 new messages