ChicoState / ChicoState/alarmflow

`scheduleAlarmSet` double-schedules when start equals end

Open
#44 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
3
Forks
5
PR merge metrics
No merged PRs in 30d

Description

**Failing test:**
AlarmScheduler.test.tsx › scheduleAlarmSet › schedules a single alarm when start equals end and is in the future
Expected number of calls: 1
Received number of calls: 2

What the test asserts: Calling scheduleAlarmSet(date, date, 5) should create exactly one trigger notification at date.getTime().
What actually happens: Two notifications are created

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.