@relaycorp/ws-mock
Advanced tools
Comparing version 2.5.2 to 3.0.0
@@ -1,8 +0,8 @@ | ||
import WebSocket from 'ws'; | ||
import { MockPeer } from './MockPeer'; | ||
import { MockServerAction } from './MockServerAction'; | ||
import { MockWebSocket } from './MockWebSocket'; | ||
export declare class MockServer extends MockPeer { | ||
get mockClientWebSocket(): WebSocket; | ||
get client(): MockWebSocket; | ||
runActions(...actions: readonly MockServerAction[]): Promise<void>; | ||
acceptConnection(): Promise<void>; | ||
} |
@@ -6,3 +6,3 @@ "use strict"; | ||
class MockServer extends MockPeer_1.MockPeer { | ||
get mockClientWebSocket() { | ||
get client() { | ||
return this.peerWebSocket; | ||
@@ -9,0 +9,0 @@ } |
@@ -1,8 +0,8 @@ | ||
import WebSocket from 'ws'; | ||
import { MockPeer } from './MockPeer'; | ||
import { MockServerAction } from './MockServerAction'; | ||
import { MockWebSocket } from './MockWebSocket'; | ||
export declare class MockServer extends MockPeer { | ||
get mockClientWebSocket(): WebSocket; | ||
get client(): MockWebSocket; | ||
runActions(...actions: readonly MockServerAction[]): Promise<void>; | ||
acceptConnection(): Promise<void>; | ||
} |
import { MockPeer } from './MockPeer'; | ||
export class MockServer extends MockPeer { | ||
get mockClientWebSocket() { | ||
get client() { | ||
return this.peerWebSocket; | ||
@@ -5,0 +5,0 @@ } |
{ | ||
"name": "@relaycorp/ws-mock", | ||
"version": "2.5.2", | ||
"version": "3.0.0", | ||
"author": { | ||
@@ -5,0 +5,0 @@ "email": "no-reply@relaycorp.tech", |
@@ -38,3 +38,3 @@ # @relaycorp/ws-mock | ||
__esModule: true, | ||
default: jest.fn().mockImplementation(() => mockServer.mockClientWebSocket), | ||
default: jest.fn().mockImplementation(() => mockServer.client), | ||
})); | ||
@@ -41,0 +41,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
63375