import 'reflect-metadata' ; import { ServiceConfiguration } from 'common' ; import { setupWebApiScanRequestSenderContainer } from './setup-web-api-scan-request-sender-container' ; import { OnDemandDispatcher } from './sender/on-demand-dispatcher' ; describe ( setupWebApiScanRequestSenderContainer , ( ) => { it ( 'verify scan request sender dependencies resolution' , ( ) => { const container = setupWebApiScanRequestSenderContainer ( ) ; expect ( container . get ( OnDemandDispatcher ) ) . toBeDefined ( ) ; } ) ; it ( 'resolves singleton dependencies' , ( ) => { const container = setupWebApiScanRequestSenderContainer ( ) ; const serviceConfig = container . get ( ServiceConfiguration ) ; expect ( serviceConfig ) . toBeInstanceOf ( ServiceConfiguration ) ; expect ( serviceConfig ) . toBe ( container . get ( ServiceConfiguration ) ) ; } ) ; } ) ;