Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions tests/authoring/Inline/CrossLinks.fs
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,20 @@ type ``cross-link makes it into html`` () =

type ``error when using wrong scheme`` () =

static let markdown = Setup.Markdown """
[APM Server binary](docs-x:/solutions/observability/apps/apm-server-binary.md)
"""

[<Fact>]
let ``error on bad scheme`` () =
let markdown = Setup.Markdown """
[APM Server binary](docs-x:/solutions/observability/apps/apm-server-binary.md)
"""
markdown
|> hasError "'docs-x' was not found in the cross link index"

[<Fact>]
let ``has no warning`` () = markdown |> hasNoWarnings
let ``has no warning`` () =
let markdown = Setup.Markdown """
[APM Server binary](docs-x:/solutions/observability/apps/apm-server-binary.md)
"""
markdown |> hasNoWarnings

type ``error when bad anchor is used`` () =

Expand Down Expand Up @@ -143,4 +146,4 @@ type ``link to repository that does not resolve yet using double slashes`` () =
let ``error when not found in links.json`` () = markdown |> hasError("'elasticsearch' was not found in the cross link index")

[<Fact>]
let ``has no warning`` () = markdown |> hasNoWarnings
let ``has no warning`` () = markdown |> hasNoWarnings
Loading