[verified] feat: auto-start next timer

This commit is contained in:
2026-07-23 00:27:05 +03:00
parent 723b4a221d
commit 6baa13dc90
9 changed files with 236 additions and 14 deletions
+11
View File
@@ -9,6 +9,17 @@ import {
import { IndexedDbSettingsStore } from './settings-store'
describe('application settings', () => {
it('automatically starts the next timer by default', () => {
expect(DEFAULT_SETTINGS.autoStartNext).toBe(true)
})
it('preserves an explicit auto-start opt-out during normalization', () => {
expect(normalizeSettings({
...DEFAULT_SETTINGS,
autoStartNext: false,
}).autoStartNext).toBe(false)
})
it('uses an overlay default aligned with the slider step', () => {
expect(DEFAULT_SETTINGS.overlayOpacity).toBe(0.2)
})