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