Used Jest to test-drive the development of a thermostat app.
As a homeowner with a heating system,
I would like a thermostat that displays the temperature
With a default set at 20 degrees
As a homeowner with a heating system,
I would like to be able to increase the temperature
By selecting the up function
As a homeowner with a heating system
I would like to be able to increase the temperature
By selecting the down function
As a homeowner that appreciates the ambience in my front room
I would like the temperature to have a minimum temperature
This can be set to 10 degrees
As a homeowner concerned about rising energy prices
I would like a power saving mode on by default
This should set the maximum temperature to 25 when on
and maximum temperature to 36 degrees when off
As a homeowner
So I can return my heating back to a default setting
I would like a reset function
It will return the temperature to 20 degrees
As a homeowner
So I can keep an eye on my energy costs
I would like to be able to know my energy usage
< 18 is low usage, < 25 is medium usage, anything else is high usage.