Fix phantomjs by using fnNameFor

Phantomjs's execptions toString include a ': ' at the end, so instead
use the exception's name property
This commit is contained in:
Sheel Choksi
2013-07-21 15:32:34 -07:00
parent 75b9dc64af
commit 04ac41d911

View File

@@ -32,7 +32,7 @@ getJasmineRequireObj().toThrowError = function(j$) {
}
if (arguments.length == 1) {
return pass("Expected function not to throw an Error, but it threw " + thrown + ".");
return pass("Expected function not to throw an Error, but it threw " + fnNameFor(thrown) + ".");
}
if (errorType) {