mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-11-28 06:05:31 +03:00
Move test case to end-to-end suite.
This commit is contained in:
parent
2639d1333d
commit
bfffe9e43b
@ -197,6 +197,20 @@ all =
|
||||
, expected =
|
||||
[ "greeting.txt" ]
|
||||
}
|
||||
, globTestCase
|
||||
{ name = "wildcard and recursiveWildcard in one pattern"
|
||||
, glob =
|
||||
Glob.succeed Tuple.pair
|
||||
|> Glob.match (Glob.literal "glob-test-cases/content/")
|
||||
|> Glob.capture Glob.recursiveWildcard
|
||||
|> Glob.match (Glob.literal "/")
|
||||
|> Glob.capture Glob.wildcard
|
||||
|> Glob.match (Glob.literal ".md")
|
||||
, expected =
|
||||
[ ( [], "about" )
|
||||
, ( [ "community" ], "meetups" )
|
||||
]
|
||||
}
|
||||
]
|
||||
|> DataSource.combine
|
||||
|> DataSource.map (describe "glob tests")
|
||||
|
@ -65,18 +65,6 @@ all =
|
||||
{ expectedMatch = ( [ "a", "b", "c" ], "d" )
|
||||
, expectedPattern = "**/*.txt"
|
||||
}
|
||||
, test "wildcard and recursiveWildcard in one pattern" <|
|
||||
\() ->
|
||||
Glob.succeed Tuple.pair
|
||||
|> Glob.match (Glob.literal "content/")
|
||||
|> Glob.capture Glob.recursiveWildcard
|
||||
|> Glob.match (Glob.literal "/")
|
||||
|> Glob.capture Glob.wildcard
|
||||
|> Glob.match (Glob.literal ".md")
|
||||
|> expectAll
|
||||
[ ( "content/about.md", ( [], "about" ) )
|
||||
, ( "content/community/meetups.md", ( [ "community" ], "meetups" ) )
|
||||
]
|
||||
]
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user