mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-12-25 04:43:03 +03:00
Move test case to end-to-end suite.
This commit is contained in:
parent
bfffe9e43b
commit
a937049993
@ -211,6 +211,17 @@ all =
|
||||
, ( [ "community" ], "meetups" )
|
||||
]
|
||||
}
|
||||
, globTestCase
|
||||
{ name = "mix of match and capture with wildcards"
|
||||
, glob =
|
||||
Glob.succeed identity
|
||||
|> Glob.match (Glob.literal "glob-test-cases/mix/")
|
||||
|> Glob.match Glob.wildcard
|
||||
|> Glob.match (Glob.literal "/")
|
||||
|> Glob.capture Glob.wildcard
|
||||
, expected =
|
||||
[ "capture" ]
|
||||
}
|
||||
]
|
||||
|> DataSource.combine
|
||||
|> DataSource.map (describe "glob tests")
|
||||
|
@ -9,16 +9,7 @@ import Test exposing (Test, describe, test)
|
||||
all : Test
|
||||
all =
|
||||
describe "glob"
|
||||
[ test "mix of match and capture with wildcards" <|
|
||||
\() ->
|
||||
Glob.succeed identity
|
||||
|> Glob.match Glob.wildcard
|
||||
|> Glob.match (Glob.literal "/")
|
||||
|> Glob.capture Glob.wildcard
|
||||
|> expectAll
|
||||
[ ( "match/capture", "capture" )
|
||||
]
|
||||
, test "mix of match and capture with wildcards 2" <|
|
||||
[ test "mix of match and capture with wildcards 2" <|
|
||||
\() ->
|
||||
Glob.succeed identity
|
||||
|> Glob.capture Glob.wildcard
|
||||
|
Loading…
Reference in New Issue
Block a user