Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
shift
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eduardo Trujillo
shift
Commits
b3ec23dd
Commit
b3ec23dd
authored
4 years ago
by
Eduardo Trujillo
Browse files
Options
Downloads
Patches
Plain Diff
style(Parsers): Format ParsersSpec
parent
c9b4a26b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/Test/Shift/ParsersSpec.hs
+26
-3
26 additions, 3 deletions
test/Test/Shift/ParsersSpec.hs
with
26 additions
and
3 deletions
test/Test/Shift/ParsersSpec.hs
+
26
−
3
View file @
b3ec23dd
...
...
@@ -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
=
[]
}
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment