diff --git a/test/Test/Shift/ParsersSpec.hs b/test/Test/Shift/ParsersSpec.hs index 184106ddfe334f9189868a20f7984862773a7bfc..ed6a7c78872070a842762d5222ee84d0a7451ed2 100644 --- a/test/Test/Shift/ParsersSpec.hs +++ b/test/Test/Shift/ParsersSpec.hs @@ -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 = [] } )