Repository navigation
Manchester | 26-ITP-Sep | Salah Alsabhi | Sprint 3 | Alarm clock - #1527
salahalsabhi wants to merge 6 commits into
Conversation
| } | ||
|
|
||
| const input = document.getElementById("alarmSet"); | ||
| let remaining = Number(input.value); |
There was a problem hiding this comment.
What happens to the countdown when Set Alarm is clicked with the number field empty?
To "like" or "dislike" this comment, please follow this link
There was a problem hiding this comment.
Good catch. Empty or invalid input is ignored: setAlarm returns early, so no countdown and no sound. Fixed in 458b940.
|
The CYF AI review has left comments. It will only review a PR one time. When you have addressed these comments, please request review again and a volunteer will take a look. |
| @@ -1,4 +1,40 @@ | |||
| function setAlarm() {} | |||
There was a problem hiding this comment.
Please add the relevant test cases mentioned in the sprint for the alarmClock app in the separate test file.
There was a problem hiding this comment.
Sorry for the mistake, conflict markers removed. All 5 sprint tests in alarmclock.test.js pass (npm test -- --selectProjects alarmclock). Ready for re-review.
There was a problem hiding this comment.
okay sure. Please update the status & re-request for review. Will review it again accordingly.
Learners, PR Template
Self checklist
Task code
CYF-1098
Changelist
Questions
No questions.