Skip to content

Commit ca36bc5

Browse files
committed
Fix failing test on windows
1 parent acbf8d1 commit ca36bc5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

backend/api.test/Controllers/InspectionAreaControllerTests.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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]

0 commit comments

Comments
 (0)