import * as SUT from '../index' ; import { ElementHandle } from 'playwright' ; describe ( 'get intersection ratio of handle' , ( ) : void => { beforeEach ( ( ) : void => { } ) ; test ( 'should return -1 when selector is undefined - chromium' , async ( ) : Promise < void > => { const selector = undefined ; const result = await SUT . getIntersectionRatioOfHandle ( selector ) ; expect ( result ) . toBe ( - 1 ) ; } ) ; test ( 'should return -1 when selector is null - chromium' , async ( ) : Promise < void > => { const selector = null ; const result = await SUT . getIntersectionRatioOfHandle ( selector ) ; expect ( result ) . toBe ( - 1 ) ; } ) ; } ) ;