Skip to content

Commit 40c4a6f

Browse files
Fix formatting in MockWebSocketConnector documentation comments
1 parent 20959c7 commit 40c4a6f

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/MockWebSocketConnector.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,9 @@ export class MockWebSocket {
149149
}
150150

151151
/**
152-
* Simulates a WebSocket error.
153-
* @param error The error to simulate
154-
*/
152+
* Simulates a WebSocket error.
153+
* @param error The error to simulate
154+
*/
155155
simulateError(error: Error): void {
156156
setTimeout(() => {
157157
if (this.onerror) this.onerror(error);
@@ -162,8 +162,8 @@ export class MockWebSocket {
162162
}
163163

164164
/**
165-
* Simulates the WebSocket closing.
166-
*/
165+
* Simulates the WebSocket closing.
166+
*/
167167
simulateClose(): void {
168168
this.readyState = 3; // CLOSED
169169
setTimeout(() => {
@@ -172,8 +172,8 @@ export class MockWebSocket {
172172
}
173173

174174
/**
175-
* Simulates a connection failure (error followed by close).
176-
*/
175+
* Simulates a connection failure (error followed by close).
176+
*/
177177
simulateConnectionFailure(): void {
178178
this.simulateError(new Error('Network failure'));
179179
}
@@ -322,7 +322,7 @@ export class MockWebSocketConnector extends WebSocketConnectorBase {
322322
return new Promise<WebSocketState>((resolve) => {
323323
this.mockWs = new MockWebSocket();
324324
this._setupWebSocketListeners();
325-
325+
326326
// Auto-open the connection after a short delay
327327
setTimeout(() => {
328328
if (this.mockWs) {

0 commit comments

Comments
 (0)