import { expect } from 'chai' ; import { GenericRequestHandlerChain } from '../../../../lib/dispatcher/request/handler/GenericRequestHandlerChain' ; import { MockAlwaysTrueRequestHandler } from '../../../mocks/request/MockAlwaysTrueRequestHandler' ; describe ( 'GenericRequestHandlerChain' , ( ) => { it ( 'should be able to get request handler' , ( ) => { const handlerChain = new GenericRequestHandlerChain < string , string > ( { requestHandler : new MockAlwaysTrueRequestHandler ( ) , } ) ; expect ( handlerChain . getRequestHandler ( ) ) . instanceof ( MockAlwaysTrueRequestHandler ) ; } ) ; } ) ;