简体   繁体   中英

freeCodeCamp Pomodoro Clock not passing test even though displayed time shows correctly

Working on a Pomodoro Clock for the freeCodeCamp Frontend Libraries course. I am using ReactJs for the frontend.

So I am having issues with Test 10, 12, 14 in the #Timer section of the tests. I have tried a number of things such as slightly adjusting the rate my interval goes at. I have tried using a date method which is commented out and am currently using the displayTime state directly as that provides a lot faster testing although the results are the same.

My issue is not being able to tell where the issues lie because visually everything looks correct but obviously the test are not happy with my code.

Currently my timers are set to very low seconds for testing on my own part.

Tests that are not getting passed.

Example of the display hitting 00:00

Repo: https://github.com/TaaniBravo/pomodoroTimer

Live URL: https://pomodoro-clock-by-taani.herokuapp.com/

EDIT: Also I suggest muting if you don't want to be annoyed with beep sound. Appreciate any help in advance!

Welcome to Stack Overflow Taani!

To encourage the volunteers to engage, it is best to paste the shortest possible code snippet that reproduces the problem, into the snippet tool, that looks like "<>".

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM