Comparing version 1.0.1 to 1.1.0
@@ -45,3 +45,3 @@ "use strict"; | ||
} | ||
PrivateChannel.prototype.userWhisper = function (eventName, event) { | ||
PrivateChannel.prototype.whisper = function (eventName, event) { | ||
if (typeof this.clientEvents["client-" + eventName] === 'undefined') { | ||
@@ -48,0 +48,0 @@ console.error("Channel didn't listen to client event: " + eventName); |
{ | ||
"name": "mock-echo", | ||
"version": "1.0.1", | ||
"version": "1.1.0", | ||
"description": "Mocking framework for Laravel Echo", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -136,3 +136,3 @@ mock-echo | ||
You can use `userWhisper` to send user event. Only private channel object and presence channel object have `userWhisper`. | ||
You can use `whisper` to send user event. Only private channel object and presence channel object have `whisper`. | ||
@@ -144,3 +144,3 @@ > Note: If you are using `vue-test-utils`, call `$nextTick` before assertion. | ||
// private channel | ||
mockEcho.getPrivateChannel('meeting').userWhisper('meetingClicking', { username: username }) | ||
mockEcho.getPrivateChannel('meeting').whisper('meetingClicking', { username: username }) | ||
wrapper.vm.$nextTick(() => { | ||
@@ -152,3 +152,3 @@ expect(wrapper.find('.whisper-message').text()).toBe(`${username} is clicking the button`) | ||
// presence channel | ||
mockEcho.getPresenceChannel('chat').userWhisper('chatClicking', { username: username }) | ||
mockEcho.getPresenceChannel('chat').whisper('chatClicking', { username: username }) | ||
wrapper.vm.$nextTick(() => { | ||
@@ -155,0 +155,0 @@ expect(wrapper.find('.whisper-message').text()).toBe(`${username} is clicking the button`) |
@@ -38,3 +38,3 @@ import * as _ from "lodash"; | ||
userWhisper (eventName, event) { | ||
whisper (eventName, event) { | ||
if (typeof this.clientEvents[`client-${eventName}`] === 'undefined') { | ||
@@ -41,0 +41,0 @@ console.error(`Channel didn't listen to client event: ${eventName}`) |
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
19889