mirror of
https://github.com/sky-systems/sky_phone.git
synced 2026-09-04 17:23:25 +00:00
ENH - clock app
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import { describe, expect, it } from 'vitest'
|
||||
|
||||
import { ALARM_SOUND_IDS } from './alarms'
|
||||
import { phoneToneDuration } from './tones'
|
||||
|
||||
describe('phone tones', () => {
|
||||
it('defines a playable duration for every alarm sound', () => {
|
||||
for (const sound of ALARM_SOUND_IDS) {
|
||||
expect(phoneToneDuration(sound)).toBeGreaterThan(0)
|
||||
expect(phoneToneDuration(sound)).toBeLessThanOrEqual(1500)
|
||||
}
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user