mirror of
https://github.com/jfmengels/elm-review.git
synced 2024-09-11 16:16:09 +03:00
Make a record
This commit is contained in:
parent
847decf1b4
commit
be560d38be
@ -48,9 +48,11 @@ compact filePatterns =
|
||||
}
|
||||
|
||||
|
||||
toStrings : Summary -> List { string : String, included : Bool }
|
||||
toStrings : Summary -> { files : List { string : String, included : Bool }, excludedFolders : List String }
|
||||
toStrings summary =
|
||||
[]
|
||||
{ files = []
|
||||
, excludedFolders = summary.excludeFoldersStrings
|
||||
}
|
||||
|
||||
|
||||
compactBase : List FilePattern -> Summary -> Result (List String) Summary
|
||||
|
@ -113,6 +113,7 @@ toStringsTest =
|
||||
Ok summary ->
|
||||
summary
|
||||
|> FilePattern.toStrings
|
||||
|> .files
|
||||
|> Expect.equal []
|
||||
|
||||
Err _ ->
|
||||
|
Loading…
Reference in New Issue
Block a user