pusher-js-mock
Advanced tools
Comparing version 0.3.6 to 0.3.7
@@ -42,3 +42,7 @@ import { PusherChannelMock } from "."; | ||
unbind(name: string, callback: () => void): void; | ||
/** | ||
* Returns a list of all channels | ||
*/ | ||
allChannels(): any[]; | ||
} | ||
export default PusherMock; |
@@ -99,4 +99,10 @@ "use strict"; | ||
}; | ||
/** | ||
* Returns a list of all channels | ||
*/ | ||
PusherMock.prototype.allChannels = function () { | ||
return Object.values(this.channels); | ||
}; | ||
return PusherMock; | ||
}()); | ||
exports.default = PusherMock; |
{ | ||
"name": "pusher-js-mock", | ||
"version": "0.3.6", | ||
"version": "0.3.7", | ||
"description": "Mock Pusher.js in your JavaScript tests with ease", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
42759
776