Skip to content

Commit

Permalink
Merge pull request jasmine#280 from ronaldploeger/master
Browse files Browse the repository at this point in the history
JSDoc @return-tag to 'spyOn' and 'expect' functions
  • Loading branch information
ragaskar committed Oct 6, 2012
2 parents 5ca2888 + f2b25f1 commit 386e83b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ jasmine.log = function() {
* @see jasmine.createSpy
* @param obj
* @param methodName
* @returns a Jasmine spy that can be chained with all spy methods
* @return {jasmine.Spy} a Jasmine spy that can be chained with all spy methods
*/
var spyOn = function(obj, methodName) {
return jasmine.getEnv().currentSpec.spyOn(obj, methodName);
Expand Down Expand Up @@ -515,6 +515,7 @@ if (isCommonJS) exports.xit = xit;
* jasmine.Matchers functions.
*
* @param {Object} actual Actual value to test against and expected value
* @return {jasmine.Matchers}
*/
var expect = function(actual) {
return jasmine.getEnv().currentSpec.expect(actual);
Expand Down

0 comments on commit 386e83b

Please sign in to comment.