@@ -63,7 +63,7 @@ export const mockWebSocketServer = (URL: string): MockWebsocketServer => {
6363 } ,
6464 ]
6565
66- const quoteReponse2 = [
66+ const noBidQuoteReponse = [
6767 {
6868 data : [
6969 'Quote' ,
@@ -72,7 +72,7 @@ export const mockWebSocketServer = (URL: string): MockWebsocketServer => {
7272 channel : '/service/data' ,
7373 } ,
7474 ]
75- const quoteReponse3 = [
75+ const noAskQuoteReponse = [
7676 {
7777 data : [
7878 'Quote' ,
@@ -81,7 +81,7 @@ export const mockWebSocketServer = (URL: string): MockWebsocketServer => {
8181 channel : '/service/data' ,
8282 } ,
8383 ]
84- const quoteReponse4 = [
84+ const invalidQuoteReponse = [
8585 {
8686 data : [
8787 'Quote' ,
@@ -125,9 +125,9 @@ export const mockWebSocketServer = (URL: string): MockWebsocketServer => {
125125 )
126126 socket . on ( 'message' , ( ) => {
127127 socket . send ( JSON . stringify ( quoteReponse ) )
128- socket . send ( JSON . stringify ( quoteReponse2 ) )
129- socket . send ( JSON . stringify ( quoteReponse3 ) )
130- socket . send ( JSON . stringify ( quoteReponse4 ) )
128+ socket . send ( JSON . stringify ( noBidQuoteReponse ) )
129+ socket . send ( JSON . stringify ( noAskQuoteReponse ) )
130+ socket . send ( JSON . stringify ( invalidQuoteReponse ) )
131131 socket . send ( JSON . stringify ( tradeResponse ) )
132132 } )
133133 } )
0 commit comments