update jsdoc for jasmine.Matchers.prototype.toThrow
expected argument is optional
This commit is contained in:
@@ -311,7 +311,7 @@ jasmine.Matchers.prototype.toBeCloseTo = function(expected, precision) {
|
|||||||
/**
|
/**
|
||||||
* Matcher that checks that the expected exception was thrown by the actual.
|
* Matcher that checks that the expected exception was thrown by the actual.
|
||||||
*
|
*
|
||||||
* @param {String} expected
|
* @param {String} [expected]
|
||||||
*/
|
*/
|
||||||
jasmine.Matchers.prototype.toThrow = function(expected) {
|
jasmine.Matchers.prototype.toThrow = function(expected) {
|
||||||
var result = false;
|
var result = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user