Skip to content

Commit 9244866

Browse files
committed
rename union creation methods
1 parent 673c7b5 commit 9244866

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

tests/authoring/Framework/Setup.fs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ type TestFile =
2424
| File of name: string * contents: string
2525
| MarkdownFile of name: string * markdown: Markdown
2626

27-
static member IndexFile([<LanguageInjection("markdown")>] m) =
27+
static member Index ([<LanguageInjection("markdown")>] m) =
2828
MarkdownFile("index.md" , m)
2929

30-
static member Markdown([<LanguageInjection("markdown")>] m) =
31-
MarkdownFile("index.md" , m)
30+
static member Markdown path ([<LanguageInjection("markdown")>] m) =
31+
MarkdownFile(path , m)
3232

3333
type Setup =
3434

@@ -106,7 +106,7 @@ type Setup =
106106

107107
/// Pass a full documentation page to the test setup
108108
static member Document ([<LanguageInjection("markdown")>]m: string) =
109-
lazy (task { return! Setup.Generator [IndexFile m] } |> Async.AwaitTask |> Async.RunSynchronously)
109+
lazy (task { return! Setup.Generator [Index m] } |> Async.AwaitTask |> Async.RunSynchronously)
110110

111111
/// Pass a markdown fragment to the test setup
112112
static member Markdown ([<LanguageInjection("markdown")>]m: string) =
@@ -115,7 +115,7 @@ type Setup =
115115
{m}
116116
"""
117117
lazy (
118-
task { return! Setup.Generator [IndexFile m] }
118+
task { return! Setup.Generator [Index m] }
119119
|> Async.AwaitTask |> Async.RunSynchronously
120120
)
121121

tests/authoring/Generator/LinkReferenceFile.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ open authoring
1010
type ``two pages with anchors end up in artifact`` () =
1111

1212
static let generator = Setup.Generate [
13-
IndexFile """
13+
Index """
1414
# A Document that lives at the root
1515
1616
*Welcome* to this documentation
@@ -21,7 +21,7 @@ type ``two pages with anchors end up in artifact`` () =
2121
2222
Through various means $$$including-this-inline-syntax$$$
2323
"""
24-
MarkdownFile ("file.md", "*hello* world")
24+
Markdown "file.md" "*hello* world"
2525
]
2626

2727
[<Fact>]

0 commit comments

Comments
 (0)