import withAutoHeight from "./withAutoHeight" ; it ( "should set height" , ( ) => { const fakePym = { onMessage : ( type , callback ) => { expect ( type ) . toBe ( "height" ) ; callback ( "100" ) ; } , iframe : document . createElement ( "iframe" ) , } ; withAutoHeight ( fakePym as any ) ; } ) ;