* Helper function to determine expected view mode based on screen width * @param {number} width - Screen width in pixels * @returns {string} - Expected view mode: 'single' or 'double'
(width)
| 27 | * @returns {string} - Expected view mode: 'single' or 'double' |
| 28 | */ |
| 29 | function getExpectedViewMode(width) { |
| 30 | return width < BREAKPOINT ? 'single' : 'double'; |
| 31 | } |
| 32 | |
| 33 | /** |
| 34 | * Helper function to create a mock window object for testing |
no outgoing calls
no test coverage detected