'store/game.ts' should be have unit tests
felixnaredi opened this issue · comments
Requirements
- There are tests that check the possible errors that can be thrown.
- Game with no words.
- Two commits without update.
- Update without commit. - There are tests that makes sure all functions in the public interface meet their requirements.
-commitSeen
modifiesscore
orlives
accordingly.
-commitUnseen
modifiesscore
orlives
accordingly.
-currentWord
has changed after callingupdateCurrentWord
.
-setUnseenSet
changes the set to the intended one.