Added jasmine.isSpy to the public interface

* Fixes #1880
This commit is contained in:
Steve Gravrock
2021-03-17 17:58:51 -07:00
parent 050c1f051c
commit 58ef707bc6
2 changed files with 16 additions and 0 deletions

View File

@@ -512,6 +512,14 @@ getJasmineRequireObj().base = function(j$, jasmineGlobal) {
return new j$.SetContaining(sample);
};
/**
* Determines whether the provided function is a Jasmine spy.
* @name jasmine.isSpy
* @since 2.0.0
* @function
* @param {Function} putativeSpy - The function to check.
* @return {Boolean}
*/
j$.isSpy = function(putativeSpy) {
if (!putativeSpy) {
return false;

View File

@@ -344,6 +344,14 @@ getJasmineRequireObj().base = function(j$, jasmineGlobal) {
return new j$.SetContaining(sample);
};
/**
* Determines whether the provided function is a Jasmine spy.
* @name jasmine.isSpy
* @since 2.0.0
* @function
* @param {Function} putativeSpy - The function to check.
* @return {Boolean}
*/
j$.isSpy = function(putativeSpy) {
if (!putativeSpy) {
return false;