Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mlqn committed Jan 22, 2025
1 parent 3c07cab commit 62a62ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public async Task SaveFormLayoutWithUpdatedComponentName_UpdatesAssociatedSummar
["layout"] = layoutWithUpdatedComponent
};
HttpResponseMessage response = await SendHttpRequest(url, payload);
response.StatusCode.Should().Be(HttpStatusCode.OK);
Assert.Equal(HttpStatusCode.OK, response.StatusCode);

string expectedApp = "app-with-summary2-components-after-updating-references";

Expand All @@ -177,7 +177,7 @@ public async Task SaveFormLayoutWithUpdatedComponentName_UpdatesAssociatedSummar
{
string actual = TestDataHelper.GetFileFromRepo(org, app, developer, $"App/ui/{file}");
string expected = TestDataHelper.GetFileFromRepo(org, expectedApp, developer, $"App/ui/{file}");
JsonUtils.DeepEquals(actual, expected).Should().BeTrue();
Assert.True(JsonUtils.DeepEquals(actual, expected));
});
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public async Task UpdateFormLayoutName_UpdatesAssociatedSummary2Components_Retur
};

using var response = await HttpClient.SendAsync(httpRequestMessage);
response.StatusCode.Should().Be(HttpStatusCode.OK);
Assert.Equal(HttpStatusCode.OK, response.StatusCode);

string expectedApp = "app-with-summary2-components-after-updating-references";

Expand All @@ -98,7 +98,7 @@ public async Task UpdateFormLayoutName_UpdatesAssociatedSummary2Components_Retur
{
string actual = TestDataHelper.GetFileFromRepo(org, app, developer, $"App/ui/{file}");
string expected = TestDataHelper.GetFileFromRepo(org, expectedApp, developer, $"App/ui/{file}");
JsonUtils.DeepEquals(actual, expected).Should().BeTrue();
Assert.True(JsonUtils.DeepEquals(actual, expected));
});
}
}
Expand Down

0 comments on commit 62a62ca

Please sign in to comment.