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

Function createMockWindow

tests/responsive.property.test.js:38–42  ·  view source on GitHub ↗

* Helper function to create a mock window object for testing * @param {number} width - Screen width in pixels * @returns {object} - Mock window-like object

(width)

Source from the content-addressed store, hash-verified

36 * @returns {object} - Mock window-like object
37 */
38 function createMockWindow(width) {
39 return {
40 innerWidth: width
41 };
42 }
43
44 /**
45 * Helper function to simulate BookUI view mode detection

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected