Fix scraperConfig test to match America/Denver default timezone
All checks were successful
CI/CD Pipeline - Apartment API / Scan Dependencies (push) Successful in 13s
CI/CD Pipeline - Apartment API / Lint & Test (push) Successful in 44s
CI/CD Pipeline - Apartment API / Send Webhook Notification (push) Successful in 2s
CI/CD Pipeline - Apartment API / Build & Push Image (push) Successful in 1m39s
CI/CD Pipeline - Apartment API / Deploy to Production (push) Successful in 14s

This commit is contained in:
2026-02-08 21:09:50 -07:00
parent ff5925f546
commit 248f310121

View File

@ -50,15 +50,15 @@ describe('config/scraper', () => {
}); });
describe('SCRAPER_TIMEZONE', () => { describe('SCRAPER_TIMEZONE', () => {
test('should default to "UTC" when env var not set', () => { test('should default to "America/Denver" when env var not set', () => {
const config = require('../../config/scraper'); const config = require('../../config/scraper');
expect(config.SCRAPER_TIMEZONE).toBe('UTC'); expect(config.SCRAPER_TIMEZONE).toBe('America/Denver');
}); });
test('should use env var override when set', () => { test('should use env var override when set', () => {
process.env.SCRAPER_TIMEZONE = 'America/Denver'; process.env.SCRAPER_TIMEZONE = 'Europe/London';
const config = require('../../config/scraper'); const config = require('../../config/scraper');
expect(config.SCRAPER_TIMEZONE).toBe('America/Denver'); expect(config.SCRAPER_TIMEZONE).toBe('Europe/London');
}); });
}); });