dwyl / learn-elm-architecture-in-javascript

:unicorn: Learn how to build web apps using the Elm Architecture in "vanilla" JavaScript (step-by-step TDD tutorial)!

Home Page:https://todomvc-app.herokuapp.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TDD Reset the Counter

nelsonic opened this issue · comments

Adding the Reset action is good opportunity to write a test first!
As a user (counting things)
I want to reset the counter
So that I can start counting again from zero.

  • Clicking the reset button in the UI resets the count to 0 (zero).

Failing test:
reset-counter-failing-test

Passing test:
image