import Registry from '../../../registry' ; import UpdateMockHandler from '../updateMockHandler' ; /** Handler that takes care of updating the mock configuration for runtime. */ class RuntimeUpdateMockHandler extends UpdateMockHandler { inheritDoc handlePassThroughScenario ( registry , identifier ) { delete registry . selections [ identifier ] ; } inheritDoc handleScenarioSelection ( registry , identifier , scenario ) { registry . selections [ identifier ] = scenario ; } inheritDoc handleDelay ( registry , identifier , delay ) { registry . delays [ identifier ] = delay ; } inheritDoc handleEcho ( registry , identifier , echo ) { registry . echos [ identifier ] = echo ; } } export default RuntimeUpdateMockHandler ;