mirror of
https://github.com/dillonkearns/elm-pages.git
synced 2024-09-11 09:05:28 +03:00
Add test case for capturing leading "./".
This commit is contained in:
parent
6df31fa436
commit
6a32e56136
@ -74,6 +74,26 @@ all =
|
||||
}
|
||||
]
|
||||
}
|
||||
, globTestCase
|
||||
{ name = "capture leading ./"
|
||||
, glob =
|
||||
Glob.succeed
|
||||
(\first second wildcardPart ->
|
||||
{ first = first
|
||||
, second = second
|
||||
, wildcard = wildcardPart
|
||||
}
|
||||
)
|
||||
|> Glob.capture (Glob.literal "./glob-test-cases/")
|
||||
|> Glob.capture (Glob.literal "content1/")
|
||||
|> Glob.capture Glob.wildcard
|
||||
, expected =
|
||||
[ { first = "./glob-test-cases/"
|
||||
, second = "content1/"
|
||||
, wildcard = "about.md"
|
||||
}
|
||||
]
|
||||
}
|
||||
, globTestCase
|
||||
{ name = "capture"
|
||||
, glob =
|
||||
|
Loading…
Reference in New Issue
Block a user