25 + 5 Clock, very picky test

Tell us what’s happening:

I have refactor my code soo many times to less elegant approach just to pass the test

Please help me point what I’m missing in this reset? I’ve reset everything back but still won’t pass.

1. When I click the element with the id of "reset", any running timer should be stopped, the value within id="break-length" should return to 5, the value within id="session-length" should return to 25, and the element with id="time-left" should reset to it's default state.

This pause error, I don’t what unit is miss by 1

10. If the timer is running and I click the element with id="start_stop", the countdown should pause.
11. If the timer is paused and I click the element with id="start_stop", the countdown should resume running from the point at which it was paused.
25 + 5 clock has paused but time continued elapsing: expected '45' to equal '46'

I guess it’s 1 millisecond.

Your code so far

https://codepen.io/kuntau/full/zYozmxq

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4421.5 Safari/537.36.

Challenge: Build a 25 + 5 Clock

Link to the challenge:

Hey there,

maybe you can find a solution by having a look at the tests?