implemented startNewGame

This commit is contained in:
Jonathan Lamothe committed 2019-08-22 01:18:44 -04:00
1 parent ca60d71006
commit c300542635
5 files changed
+47 -12

No files matched your search

+11 -1
View File
@@ -49,7 +49,17 @@ startNewSeasonSpec = describe "startNewSeason" $ do
s ^. database . dbGames `shouldBe` 0
startNewGameSpec :: Spec
startNewGameSpec = describe "startGame" $ return ()
startNewGameSpec = describe "startNewGame" $ do
let
s = newProgState
& database . dbGames .~ 1
& startNewGame
it "should set the number of games to 0" $
s ^. database . dbGames `shouldBe` 0
it "should set the mode to NewGame" $
s ^. progMode `shouldBe` NewGame newGameState
resetYtdSpec :: Spec
resetYtdSpec = describe "resetYtd" $