File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
tests/Giraffe.TokenRouter.Tests Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1496,6 +1496,7 @@ type DebugTests(output:ITestOutputHelper) =
14961496 Assert.Equal( expected, body)
14971497 }
14981498
1499+ [<Fact>]
14991500 member __. ``Test routePorts function`` () =
15001501 let ctx = Substitute.For< HttpContext>()
15011502 let notFound = ( setStatusCode 404 >=> text " Not Found" )
@@ -1522,9 +1523,8 @@ type DebugTests(output:ITestOutputHelper) =
15221523
15231524 let expected = " newpassword2"
15241525 ctx.Request.Method.ReturnsForAnyArgs " POST" |> ignore
1525- ctx.Request.Path.ReturnsForAnyArgs ( PathString( " /api/newpassword2" )) |> ignore
1526- ctx.Request.Host.Port.HasValue.ReturnsForAnyArgs true |> ignore
1527- ctx.Request.Host.Port.Value.ReturnsForAnyArgs 9002 |> ignore
1526+ ctx.Request.Path.ReturnsForAnyArgs ( PathString( " /api2/newpassword2" )) |> ignore
1527+ ctx.Request.Host.ReturnsForAnyArgs ( HostString( " " , 9002 )) |> ignore
15281528 ctx.Response.Body <- new MemoryStream()
15291529
15301530 task {
You can’t perform that action at this time.
0 commit comments