Skip to content

Commit ab96800

Browse files
author
Sahar Shemesh
committed
chore: lint
1 parent c84ddde commit ab96800

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

‎src/shared/stdio.test.ts‎

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,7 @@ describe('non-JSON line filtering', () =>{
3939
constreadBuffer=newReadBuffer();
4040

4141
// Append debug output followed by a valid JSON message
42-
constmixedContent='Debug: Starting server\n'+
43-
'Warning: Something happened\n'+
44-
JSON.stringify(testMessage)+'\n';
42+
constmixedContent='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
constmessage1: JSONRPCMessage={jsonrpc: '2.0',method: 'method1'};
5755
constmessage2: JSONRPCMessage={jsonrpc: '2.0',method: 'method2'};
5856

59-
constmixedContent='Debug line 1\n'+
60-
JSON.stringify(message1)+'\n'+
57+
constmixedContent=
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
constreadBuffer=newReadBuffer();
9091

91-
constcontent='{incomplete\n'+
92-
JSON.stringify(testMessage)+'\n';
92+
constcontent='{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
constreadBuffer=newReadBuffer();
103103

104-
constcontent='incomplete}\n'+
105-
JSON.stringify(testMessage)+'\n';
104+
constcontent='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

Comments
(0)