File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
backend/api.test/Controllers Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -182,8 +182,9 @@ public async Task TestUpdatingInspectionAreaPolygon()
182182
183183 var content = new StringContent ( jsonString , null , "application/json" ) ;
184184
185- var expecedJsonString = await content . ReadAsStringAsync ( ) ;
186- expecedJsonString = expecedJsonString . Replace ( "\n " , "" ) . Replace ( " " , "" ) ;
185+ var expectedJsonString = await content . ReadAsStringAsync ( ) ;
186+ expectedJsonString = expectedJsonString . Replace ( "\n " , "" ) . Replace ( " " , "" ) ;
187+ expectedJsonString = expectedJsonString . Replace ( "\r " , "" ) . Replace ( " " , "" ) ;
187188
188189 // Act
189190 var response = await Client . PatchAsync (
@@ -196,7 +197,7 @@ public async Task TestUpdatingInspectionAreaPolygon()
196197
197198 // Assert
198199 Assert . True ( response . IsSuccessStatusCode ) ;
199- Assert . Equal ( expecedJsonString , inspectionAreaResponse ! . AreaPolygonJson ! ) ;
200+ Assert . Equal ( expectedJsonString , inspectionAreaResponse ! . AreaPolygonJson ! ) ;
200201 }
201202
202203 [ Fact ]
You can’t perform that action at this time.
0 commit comments