File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments