File tree Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -142,9 +142,6 @@ export function getModifiedData(
142142 }
143143 } else {
144144 dataWithContext = getTextWithContext ( processedData , currentContext ) ;
145- if ( stderr ) {
146- dataWithContext [ SEVERITY ] = 'ERROR' ;
147- }
148145 }
149146
150147 return JSON . stringify ( dataWithContext ) + '\n' ;
Original file line number Diff line number Diff line change @@ -134,9 +134,7 @@ describe('getModifiedData', () => {
134134 it ( 'simple text with error' , ( ) => {
135135 const modifiedData = getModifiedData ( sampleText , undefined , true ) ;
136136 const expectedOutput =
137- JSON . stringify (
138- Object . assign ( JSON . parse ( expectedTextOutput ) , { severity : 'ERROR' } )
139- ) + '\n' ;
137+ JSON . stringify ( Object . assign ( JSON . parse ( expectedTextOutput ) ) ) + '\n' ;
140138 assert . equal ( modifiedData , expectedOutput ) ;
141139 } ) ;
142140
You can’t perform that action at this time.
0 commit comments