|
@ -306,11 +306,11 @@ function _throws(shouldThrow, block, expected, message) { |
|
|
(message ? ' ' + message : '.'); |
|
|
(message ? ' ' + message : '.'); |
|
|
|
|
|
|
|
|
if (shouldThrow && !actual) { |
|
|
if (shouldThrow && !actual) { |
|
|
fail('Missing expected exception' + message); |
|
|
fail(actual, expected, 'Missing expected exception' + message); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (!shouldThrow && expectedException(actual, expected)) { |
|
|
if (!shouldThrow && expectedException(actual, expected)) { |
|
|
fail('Got unwanted exception' + message); |
|
|
fail(actual, expected, 'Got unwanted exception' + message); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if ((shouldThrow && actual && expected && |
|
|
if ((shouldThrow && actual && expected && |
|
|