import * as assert from 'assert' ; import { useContext , createContextToken , createReader } from '@marblejs/core' ; import { EventBusClientToken } from '@marblejs/messaging' ; export const SomeDependencyToken = createContextToken ( 'SomeDependency' ) ; description export const SomeDependency = createReader ( ask => { const eventBusClient = useContext ( EventBusClientToken ) ( ask ) ; assert . strictEqual ( typeof eventBusClient . emit , 'function' ) ; return 'nothing special' ; } ) ;