itaditya / trick-or-treat-game

Play it for free here
https://trick-or-treat.netlify.com/
16 stars 17 forks source link

Add tests for Score saving flow #58

Open itaditya opened 4 years ago

itaditya commented 4 years ago

Currently the user flow

Completing the game -> Render result page -> Enter username -> Save username and score to localStorage.

is not tested. Using jest and @testing-library/react tests have to be added for this flow.

Test should go in src/tests/Game.test.js

devTeaa commented 4 years ago

I'll try woking on this one