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