Pomodoro Clock not Passing 2 Tests, Need Help

Pomodoro Clock not Passing 2 Tests, Need Help
0

My Pomodoro Clock is passing all but two tests:

  • User Story #11: 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.
  • User Story #28: The audio element with id of beep must stop playing and be rewound to the beginning when the element with the id of reset is clicked.

Here’s the link to my Pomodoro Clock:


Why are the tests not passing?

To get the first test to pass the element with the id="timer-label’ text needs to be reset to ‘Session’ whenever reset is clicked.

To get the second test to pass, you’ll need to make a few changes in the handleReset() method:

Change this:
this.audio.pause
this.audio.currentTime = 0

To this:
this.audio.pause()
this.audio.currentTime = 0;