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:
@@ -32,7 +32,7 @@ getJasmineRequireObj().toThrowError = function(j$) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (arguments.length == 1) {
|
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) {
|
if (errorType) {
|
||||||
|
|||||||
Reference in New Issue
Block a user