@@ -39,9 +39,7 @@ describe('non-JSON line filtering', () => {
3939 const readBuffer = new ReadBuffer ( ) ;
4040
4141 // Append debug output followed by a valid JSON message
42- const mixedContent = 'Debug: Starting server\n' +
43- 'Warning: Something happened\n' +
44- JSON . stringify ( testMessage ) + '\n' ;
42+ const mixedContent = 'Debug: Starting server\n' + 'Warning: Something happened\n' + JSON . stringify ( testMessage ) + '\n' ;
4543
4644 readBuffer . append ( Buffer . from ( mixedContent ) ) ;
4745
@@ -56,11 +54,14 @@ describe('non-JSON line filtering', () => {
5654 const message1 : JSONRPCMessage = { jsonrpc : '2.0' , method : 'method1' } ;
5755 const message2 : JSONRPCMessage = { jsonrpc : '2.0' , method : 'method2' } ;
5856
59- const mixedContent = 'Debug line 1\n' +
60- JSON . stringify ( message1 ) + '\n' +
57+ const mixedContent =
58+ 'Debug line 1\n' +
59+ JSON . stringify ( message1 ) +
60+ '\n' +
6161 'Debug line 2\n' +
6262 'Another non-JSON line\n' +
63- JSON . stringify ( message2 ) + '\n' ;
63+ JSON . stringify ( message2 ) +
64+ '\n' ;
6465
6566 readBuffer . append ( Buffer . from ( mixedContent ) ) ;
6667
@@ -88,8 +89,7 @@ describe('non-JSON line filtering', () => {
8889 test ( 'should handle lines that start with { but do not end with }' , ( ) => {
8990 const readBuffer = new ReadBuffer ( ) ;
9091
91- const content = '{incomplete\n' +
92- JSON . stringify ( testMessage ) + '\n' ;
92+ const content = '{incomplete\n' + JSON . stringify ( testMessage ) + '\n' ;
9393
9494 readBuffer . append ( Buffer . from ( content ) ) ;
9595
@@ -101,8 +101,7 @@ describe('non-JSON line filtering', () => {
101101 test ( 'should handle lines that end with } but do not start with {' , ( ) => {
102102 const readBuffer = new ReadBuffer ( ) ;
103103
104- const content = 'incomplete}\n' +
105- JSON . stringify ( testMessage ) + '\n' ;
104+ const content = 'incomplete}\n' + JSON . stringify ( testMessage ) + '\n' ;
106105
107106 readBuffer . append ( Buffer . from ( content ) ) ;
108107
@@ -121,5 +120,4 @@ describe('non-JSON line filtering', () => {
121120
122121 expect ( readBuffer . readMessage ( ) ) . toEqual ( message ) ;
123122 } ) ;
124-
125123} ) ;
0 commit comments