import NgApimockHandler from '../ngApimockHandler' ; import Registry from '../registry' ; /** Handler for a request for runtime. */ class RuntimeNgApimockHandler extends NgApimockHandler { inheritDoc getSelection ( registry , identifier , ngApimockId ) { return registry . selections [ identifier ] ; } inheritDoc getVariables ( registry , ngApimockId ? ) { return registry . variables ; } inheritDoc getEcho ( registry , identifier ) { return registry . echos [ identifier ] ; } inheritDoc getDelay ( registry , identifier ) { return registry . delays [ identifier ] ; } } export default RuntimeNgApimockHandler ;