update jsdoc for jasmine.Matchers.prototype.toThrow

expected argument is optional
This commit is contained in:
Alexey Androsov
2012-07-10 15:12:32 +04:00
committed by Davis W. Frank & Rajan Agaskar
parent 26f0f6f213
commit ae9ddd74a2
+1 -1
View File
@@ -308,7 +308,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;