MCPcopy Create free account
hub / github.com/cutedCha/noteBoook / getExpectedViewMode

Function getExpectedViewMode

tests/responsive.property.test.js:29–31  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

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

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected