(state)
| 3827 | } |
| 3828 | |
| 3829 | function isAutoRunScheduledState(state) { |
| 3830 | const plan = normalizeAutoRunTimerPlanFromState(state); |
| 3831 | const scheduledAt = state.scheduledAutoRunAt === null ? null : Number(state.scheduledAutoRunAt); |
| 3832 | return Boolean(state.autoRunning) |
| 3833 | && state.autoRunPhase === 'scheduled' |
| 3834 | && Number.isFinite(scheduledAt) |
| 3835 | && plan?.kind === AUTO_RUN_TIMER_KIND_SCHEDULED_START; |
| 3836 | } |
| 3837 | |
| 3838 | function getPendingAutoRunTimerPlan(state = {}) { |
| 3839 | return normalizeAutoRunTimerPlanFromState(state); |
no test coverage detected