Skip to content
Snippets Groups Projects
Commit b3ec23dd authored by Eduardo Trujillo's avatar Eduardo Trujillo
Browse files

style(Parsers): Format ParsersSpec

parent c9b4a26b
No related branches found
No related tags found
No related merge requests found
......@@ -4,8 +4,27 @@ module Test.Shift.ParsersSpec where
import Data.HashSet (fromList)
import Shift (BreakingChange (BreakingChange))
import Shift.Parsers (breakingChange, commit, commitType, manyCharsTill, someCharsTill, spaced)
import Shift.Types (CommitType (CTFeature), ConventionalCommit (ConventionalCommit, _ccAffectedTickets, _ccBody, _ccBreakingChanges, _ccScope, _ccSubject, _ccType), ParsedCommit (PCConventional))
import Shift.Parsers
( breakingChange,
commit,
commitType,
manyCharsTill,
someCharsTill,
spaced,
)
import Shift.Types
( CommitType (CTFeature),
ConventionalCommit
( ConventionalCommit,
_ccAffectedTickets,
_ccBody,
_ccBreakingChanges,
_ccScope,
_ccSubject,
_ccType
),
ParsedCommit (PCConventional),
)
import Test.Hspec (Spec, describe, it)
import Test.Hspec.Megaparsec (shouldFailOn, shouldParse)
import Text.Megaparsec (parse)
......@@ -94,7 +113,11 @@ spec = do
_ccScope = "src",
_ccSubject = "Add README file",
_ccBody = "This is an example commit body.",
_ccBreakingChanges = [BreakingChange "This will require a new OS upgrade." (Just "Go to example.org to download a new OS.")],
_ccBreakingChanges =
[ BreakingChange
"This will require a new OS upgrade."
(Just "Go to example.org to download a new OS.")
],
_ccAffectedTickets = []
}
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment