Skip to content

Conversation

amree
Copy link
Contributor

@amree amree commented Oct 21, 2025

The factory was hardcoding close_day to 1 (Monday), which caused tests to fail when creating same-day opening hours for other days. The Friday prayer break test was failing because it incorrectly treated Friday hours as overnight hours ending on Monday.

This fix ensures close_day defaults to start_day unless explicitly overridden, making same-day hours the default behavior.

🤖 Generated with Claude Code

The factory was hardcoding close_day to 1 (Monday), which caused tests
to fail when creating same-day opening hours for other days. The
Friday prayer break test was failing because it incorrectly treated
Friday hours as overnight hours ending on Monday.

This fix ensures close_day defaults to start_day unless explicitly
overridden, making same-day hours the default behavior.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants