Skip to content

Commit 01e8b8b

Browse files
committed
1 parent 50db168 commit 01e8b8b

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

tests/authoring/Inline/CrossLinks.fs

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,20 @@ type ``cross-link makes it into html`` () =
3131

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

34-
static let markdown = Setup.Markdown """
35-
[APM Server binary](docs-x:/solutions/observability/apps/apm-server-binary.md)
36-
"""
37-
3834
[<Fact>]
3935
let ``error on bad scheme`` () =
36+
let markdown = Setup.Markdown """
37+
[APM Server binary](docs-x:/solutions/observability/apps/apm-server-binary.md)
38+
"""
4039
markdown
4140
|> hasError "'docs-x' was not found in the cross link index"
4241

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

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

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

145148
[<Fact>]
146-
let ``has no warning`` () = markdown |> hasNoWarnings
149+
let ``has no warning`` () = markdown |> hasNoWarnings

0 commit comments

Comments
 (0)