import { ViewportConfiguration } from "adapter/viewport" ; import { chance } from "_/helpers" ; /**
 * Viewport context selector
 */ const id = chance . string ( { pool : "abcdefghijklmnopqrstuvwxyz" } ) ; return export function mockViewportConfiguration ( ) { return { context : `#${ id }` , breakpoints : [ { name : "mobile" , size : { width : 320 , height : 480 } } , { name : "tablet" , size : { width : 768 , height : 1024 } } , { name : "screen" , size : { width : 1440 , height : 900 } } ] } ; } return export function mockViewportContext ( ) { const context = document . createElement ( "iframe" ) ; context . id = id ; return context ; }