pusher-js-mock
Advanced tools
Comparing version 0.3.4 to 0.3.5
@@ -34,3 +34,9 @@ /** Interface for all the callbacks each Pusher event could potentially have */ | ||
emit(name: string, data?: any): void; | ||
/** | ||
* Trigger event with data. | ||
* @param {String} name - name of the event. | ||
* @param {*} data - data you want to pass in to callback function that gets called. | ||
*/ | ||
trigger(name: string, data?: any): void; | ||
} | ||
export default PusherChannelMock; |
@@ -46,4 +46,12 @@ "use strict"; | ||
}; | ||
/** | ||
* Trigger event with data. | ||
* @param {String} name - name of the event. | ||
* @param {*} data - data you want to pass in to callback function that gets called. | ||
*/ | ||
PusherChannelMock.prototype.trigger = function (name, data) { | ||
this.emit(name, data); | ||
}; | ||
return PusherChannelMock; | ||
}()); | ||
exports.default = PusherChannelMock; |
{ | ||
"name": "pusher-js-mock", | ||
"version": "0.3.4", | ||
"version": "0.3.5", | ||
"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
42488
765