import * as SUT from '../index' ; import { defaultVerboseOptions } from '../../is-handle-visible' ; import { ElementHandle } from 'playwright' ; describe ( 'handle is not visible in viewport' , ( ) : void => { beforeEach ( ( ) : void => { } ) ; test ( 'should return true when handle is undefined' , async ( ) : Promise < void > => { const handle = undefined ; const result = await SUT . isHandleNotVisibleInViewport ( handle , defaultVerboseOptions ) ; expect ( result ) . toBe ( true ) ; } ) ; test ( 'should return true when handle is null' , async ( ) : Promise < void > => { const handle = null ; const result = await SUT . isHandleNotVisibleInViewport ( handle , defaultVerboseOptions ) ; expect ( result ) . toBe ( true ) ; } ) ; } ) ;