From 491075901ab2df8502801aab8feded4446b6bdb1 Mon Sep 17 00:00:00 2001 From: Rudy Matela Date: Fri, 15 Jul 2022 09:57:30 +0200 Subject: [PATCH] tests/Spec: reindent candidateState --- tests/Spec.hs | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/tests/Spec.hs b/tests/Spec.hs index 51050c9a..155e1879 100644 --- a/tests/Spec.hs +++ b/tests/Spec.hs @@ -75,15 +75,12 @@ singlePullRequestState pr prBranch baseBranch prSha prAuthor = in fst $ runAction $ handleEventTest event Project.emptyProjectState -candidateState :: PullRequestId -> Branch -> BaseBranch -> Sha -> Username -> Username -> Sha -> ProjectState -candidateState pr prBranch baseBranch prSha prAuthor approvedBy candidateSha = - let - state = Project.setIntegrationStatus pr - (Project.Integrated candidateSha Project.BuildPending) - $ Project.setApproval pr (Just (Approval approvedBy Project.Merge 0)) - $ singlePullRequestState pr prBranch baseBranch prSha prAuthor - in - state +candidateState + :: PullRequestId -> Branch -> BaseBranch -> Sha -> Username -> Username -> Sha -> ProjectState +candidateState pr prBranch baseBranch prSha prAuthor approvedBy candidateSha + = Project.setIntegrationStatus pr (Project.Integrated candidateSha Project.BuildPending) + $ Project.setApproval pr (Just (Approval approvedBy Project.Merge 0)) + $ singlePullRequestState pr prBranch baseBranch prSha prAuthor -- Types and functions to mock running an action without actually doing anything.