简体   繁体   English

即使显示的时间正确显示,freeCodeCamp Pomodoro Clock 也没有通过测试

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

Working on a Pomodoro Clock for the freeCodeCamp Frontend Libraries course.为 freeCodeCamp 前端库课程制作番茄钟。 I am using ReactJs for the frontend.我在前端使用 ReactJs。

So I am having issues with Test 10, 12, 14 in the #Timer section of the tests.所以我在测试的#Timer 部分遇到了测试 10、12、14 的问题。 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.我尝试使用已注释掉的日期方法,目前正在直接使用 displayTime state,因为尽管结果相同,但它提供了更快的测试。

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显示命中 00:00 的示例

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

Live URL: https://pomodoro-clock-by-taani.herokuapp.com/直播 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!欢迎来到 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 "<>".为了鼓励志愿者参与,最好将重现问题的最短代码片段粘贴到片段工具中,看起来像“<>”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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