import * as SUT from '../index' ; describe ( 'hasQueryString(url)' , ( ) : void => { test ( 'should detect query string' , async ( ) : Promise < void > => { const url = 'http://localhost:8080/foobar?foo=bar' ; const result = SUT . hasQueryString ( url ) ; expect ( result ) . toBe ( true ) ; } ) ; test ( 'should not detect query string' , async ( ) : Promise < void > => { const url = 'http://localhost:8080/foobar/#' ; const result = SUT . hasQueryString ( url ) ; expect ( result ) . toBe ( false ) ; } ) ; test ( 'should not detect empty query string' , async ( ) : Promise < void > => { const url = 'http://localhost:8080/foobar?' ; const result = SUT . hasQueryString ( url ) ; expect ( result ) . toBe ( false ) ; } ) ; } ) ;