import 'jest-extended' ; import { debugLogger } from '@terascope/utils' ; import workerModule from '../src/worker' ; describe ( 'worker' , ( ) => { it ( 'should not throw when constructed' , ( ) => { const context = { logger : debugLogger ( 'worker-module' ) } ; expect ( ( ) => workerModule ( context ) ) . not . toThrow ( ) ; } ) ; } ) ;