Add JSDoc @return-tag to 'spyOn' and 'expect' functions support
code completion in Spket IDE
This commit is contained in:
committed by
Davis W. Frank & Rajan Agaskar
parent
b527ccd2fa
commit
acdc497361
@@ -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);
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user