felixnaredi / deja-vu

A game that test your verbal memory.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

'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 modifies score or lives accordingly.
    - commitUnseen modifies score or lives accordingly.
    - currentWord has changed after calling updateCurrentWord.
    - setUnseenSet changes the set to the intended one.