added goalie creation to main menu

This commit is contained in:
Jonathan Lamothe
2019-10-25 00:37:14 -04:00
parent e94bf59c81
commit 67bb12920c
3 changed files with 24 additions and 6 deletions

View File

@@ -54,6 +54,7 @@ spec = describe "Mtlstats.Actions" $ do
updateGameStatsSpec
validateGameDateSpec
createPlayerSpec
createGoalieSpec
addPlayerSpec
recordGoalAssistsSpec
awardGoalSpec
@@ -353,6 +354,12 @@ createPlayerSpec = describe "createPlayer" $
s = createPlayer newProgState
in show (s^.progMode) `shouldBe` "CreatePlayer"
createGoalieSpec :: Spec
createGoalieSpec = describe "createGoalie" $
it "should change the mode appropriately" $ let
s = createGoalie newProgState
in show (s^.progMode) `shouldBe` "CreateGoalie"
addPlayerSpec :: Spec
addPlayerSpec = describe "addPlayer" $ do
let