import { getActiveMock , getMockState } from '../mock/map' ; import { createReturns , Stub } from '../return/returns' ; param expectedCall example example example export const when = < R > ( expectedCall ) : Stub < R > => createReturns < R > ( getMockState ( getActiveMock ( ) ) . pendingExpectation ) ;