pusher-js-mock
Advanced tools
Comparing version 0.3.3 to 0.3.4
@@ -25,2 +25,6 @@ /** Interface for all the callbacks each Pusher event could potentially have */ | ||
/** | ||
* Unbind callbacks from all the events. | ||
*/ | ||
unbind_all(): void; | ||
/** | ||
* Emit event with data. | ||
@@ -27,0 +31,0 @@ * @param {String} name - name of the event. |
@@ -30,2 +30,8 @@ "use strict"; | ||
/** | ||
* Unbind callbacks from all the events. | ||
*/ | ||
PusherChannelMock.prototype.unbind_all = function () { | ||
this.callbacks = {}; | ||
}; | ||
/** | ||
* Emit event with data. | ||
@@ -32,0 +38,0 @@ * @param {String} name - name of the event. |
{ | ||
"name": "pusher-js-mock", | ||
"version": "0.3.3", | ||
"version": "0.3.4", | ||
"description": "Mock Pusher.js in your JavaScript tests with ease", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -44,8 +44,8 @@ <p align="center"> | ||
- [Emitting an event 📶](#emitting-an-event-📶) | ||
- [Listening for an event 👂](#listening-for-an-event-👂) | ||
- [Emitting an event from connection 📶](#emitting-an-event-from-connection-📶) | ||
- [Listening for an event from connection 👂](#listening-for-an-event-from-connection-👂) | ||
- [Stubbing Pusher when imported from pusher-js package 📦](#stubbing-pusher-when-imported-from-pusher-js-package-📦) | ||
- [Stubbing Pusher when used as a global variable 🌍](#stubbing-pusher-when-used-as-a-global-variable-🌍) | ||
- [Emitting an event 📶](#emitting-an-event-) | ||
- [Listening for an event 👂](#listening-for-an-event-) | ||
- [Emitting an event from connection 📶](#emitting-an-event-from-connection-) | ||
- [Listening for an event from connection 👂](#listening-for-an-event-from-connection-) | ||
- [Stubbing Pusher when imported from pusher-js package 📦](#stubbing-pusher-when-imported-from-pusher-js-package-) | ||
- [Stubbing Pusher when used as a global variable 🌍](#stubbing-pusher-when-used-as-a-global-variable-) | ||
- [Mocking presence channels](#mocking-presence-channels) | ||
@@ -52,0 +52,0 @@ - [Using custom authorizer](#using-custom-authorizer) |
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
41967
751