Socket
Socket
Sign inDemoInstall

mock-echo

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mock-echo - npm Package Compare versions

Comparing version 1.0.1 to 1.1.0

2

dist/index.js

@@ -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}`)

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc