Skip to content

Commit a39d45b

Browse files
committed
Added Fact attribute to test method and fixed errors
Fixes #2
1 parent c190e7b commit a39d45b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/Giraffe.TokenRouter.Tests/TokenRouterTests.fs

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

0 commit comments

Comments
 (0)