SCRAPE-15: Add getNextScheduledRun() test coverage #20

Merged
stephen merged 1 commits from scraper/next-run into dev 2026-02-06 18:21:30 -07:00
Owner

Adds comprehensive test coverage for the getNextScheduledRun() function in scraperJob.js.

Adds comprehensive test coverage for the getNextScheduledRun() function in scraperJob.js.
stephen added 1 commit 2026-02-06 18:20:02 -07:00
Add comprehensive test coverage for getNextScheduledRun()
All checks were successful
CI/CD Pipeline - Apartment API / Scan Dependencies (pull_request) Successful in 12s
CI/CD Pipeline - Apartment API / Lint & Test (pull_request) Successful in 39s
CI/CD Pipeline - Apartment API / Send Webhook Notification (pull_request) Successful in 2s
CI/CD Pipeline - Apartment API / Build & Push Image (pull_request) Has been skipped
CI/CD Pipeline - Apartment API / Deploy to Production (pull_request) Has been skipped
f436d0ed44
Add 4 new test cases for the getNextScheduledRun() function:
- Verify scheduled time respects configured timezone
- Validate returned time is always in the future
- Handle invalid cron expression gracefully (return null)
- Confirm cron-parser library is used for next run calculation

This brings the total scraperJob test count to 60.
stephen merged commit c6d480a870 into dev 2026-02-06 18:21:30 -07:00
stephen deleted branch scraper/next-run 2026-02-06 18:21:30 -07:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: stephen/apartment-dashboard-api#20
No description provided.