Skip to content

Commit 57bd05a

Browse files
committed
test deployment type order
Signed-off-by: bmorelli25 <[email protected]>
1 parent 435421c commit 57bd05a

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

tests/authoring/Applicability/AppliesToFrontMatter.fs

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,27 @@ applies_to:
241241
ApmAgentDotnet=AppliesCollection.op_Explicit "ga 9.0"
242242
),
243243
Product=AppliesCollection.op_Explicit "ga"
244+
))
245+
246+
type ``deployment types are rendered in correct order`` () =
247+
static let markdown = frontMatter """
248+
applies_to:
249+
deployment:
250+
self: ga 9.0
251+
ece: ga 9.1
252+
ess: ga 9.2
253+
eck: ga 9.3
254+
"""
255+
[<Fact>]
256+
let ``deployment types are rendered in ESS ECK ECE Self order`` () =
257+
markdown |> appliesTo (ApplicableTo(
258+
Deployment=DeploymentApplicability(
259+
Ess=AppliesCollection.op_Explicit "ga 9.2",
260+
Eck=AppliesCollection.op_Explicit "ga 9.3",
261+
Ece=AppliesCollection.op_Explicit "ga 9.1",
262+
Self=AppliesCollection.op_Explicit "ga 9.0"
263+
)
264+
))
244265

245266
type ``sorts applies_to versions in descending order`` () =
246267
static let markdown = frontMatter """

0 commit comments

Comments
 (0)