Update test/unit/Elsa.Activities.UnitTests/Http/HttpEndpointTests.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
eaac09dfd6
commit
d77f73d1dc
|
|
@ -90,19 +90,6 @@ public class HttpEndpointTests
|
|||
Assert.True(context.WorkflowExecutionContext.Bookmarks.Any());
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[InlineData("/api/users", "/api/users")]
|
||||
[InlineData("api/users", "/api/users")]
|
||||
[InlineData("/api/users/", "/api/users")]
|
||||
[InlineData("api/users/", "/api/users")]
|
||||
public void Should_Normalize_Routes_Correctly(string inputPath, string expectedPath)
|
||||
{
|
||||
// Act
|
||||
var normalizedPath = inputPath.NormalizeRoute();
|
||||
|
||||
// Assert
|
||||
Assert.Equal(expectedPath, normalizedPath);
|
||||
}
|
||||
|
||||
private static HttpEndpoint CreateHttpEndpoint(
|
||||
string path,
|
||||
|
|
|
|||
Loading…
Reference in a new issue