mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-11-24 06:54:03 +03:00
Add test case for optional segment.
This commit is contained in:
parent
261cd64ed5
commit
a9ac1ca707
@ -119,6 +119,18 @@ suite =
|
||||
]
|
||||
]
|
||||
)
|
||||
, test "optional param" <|
|
||||
\() ->
|
||||
[ "Docs", "Section__" ]
|
||||
|> expectRouteDefinition
|
||||
(Elm.variantWith "Docs__Section__"
|
||||
[ Elm.Annotation.record
|
||||
[ ( "section"
|
||||
, Elm.Annotation.maybe Elm.Annotation.string
|
||||
)
|
||||
]
|
||||
]
|
||||
)
|
||||
]
|
||||
]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user