mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-12-26 13:21:42 +03:00
Remove duplicate test case.
This commit is contained in:
parent
8adac30f30
commit
fb7f5fa1e9
@ -71,7 +71,7 @@ all =
|
||||
, expected = [ ( "data-file", JSON ) ]
|
||||
}
|
||||
, globTestCase
|
||||
{ name = "7"
|
||||
{ name = "multiple wildcards"
|
||||
, glob =
|
||||
Glob.succeed
|
||||
(\year month day slug ->
|
||||
|
@ -120,34 +120,6 @@ all =
|
||||
[ ( "content/about.md", ( [], "about" ) )
|
||||
, ( "content/community/meetups.md", ( [ "community" ], "meetups" ) )
|
||||
]
|
||||
, test "multiple wildcards" <|
|
||||
\() ->
|
||||
Glob.succeed
|
||||
(\year month day slug ->
|
||||
{ year = year
|
||||
, month = month
|
||||
, day = day
|
||||
, slug = slug
|
||||
}
|
||||
)
|
||||
|> Glob.match (Glob.literal "archive/")
|
||||
|> Glob.capture Glob.int
|
||||
|> Glob.match (Glob.literal "/")
|
||||
|> Glob.capture Glob.int
|
||||
|> Glob.match (Glob.literal "/")
|
||||
|> Glob.capture Glob.int
|
||||
|> Glob.match (Glob.literal "/")
|
||||
|> Glob.capture Glob.wildcard
|
||||
|> Glob.match (Glob.literal ".md")
|
||||
|> expectAll
|
||||
[ ( "archive/1977/06/10/apple-2-released.md"
|
||||
, { year = 1977
|
||||
, month = 6
|
||||
, day = 10
|
||||
, slug = "apple-2-released"
|
||||
}
|
||||
)
|
||||
]
|
||||
]
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user