Add jsdoc for jasmine.log.
This commit is contained in:
parent
3be2455d8c
commit
6a9f74e849
|
@ -37,6 +37,11 @@ jasmine.Spec.prototype.results = function() {
|
|||
return this.results_;
|
||||
};
|
||||
|
||||
/**
|
||||
* All parameters are pretty-printed and concatenated together, then written to the spec's output.
|
||||
*
|
||||
* Be careful not to leave calls to <code>jasmine.log</code> in production code.
|
||||
*/
|
||||
jasmine.Spec.prototype.log = function() {
|
||||
return this.results_.log(arguments);
|
||||
};
|
||||
|
|
|
@ -409,6 +409,11 @@ jasmine.createSpyObj = function(baseName, methodNames) {
|
|||
return obj;
|
||||
};
|
||||
|
||||
/**
|
||||
* All parameters are pretty-printed and concatenated together, then written to the current spec's output.
|
||||
*
|
||||
* Be careful not to leave calls to <code>jasmine.log</code> in production code.
|
||||
*/
|
||||
jasmine.log = function() {
|
||||
var spec = jasmine.getEnv().currentSpec;
|
||||
spec.log.apply(spec, arguments);
|
||||
|
|
Loading…
Reference in New Issue