import helper from '../../helper' ; import GetMocksHandler from '../getMocksHandler' ; import Registry from '../../../registry' ; /** Handler that takes care of getting all the mocks for protractor. */ class ProtractorGetMocksHandler extends GetMocksHandler { inheritDoc getSelections ( registry , ngApimockId ? ) { helper . protractor . addSessionIfNonExisting ( registry , ngApimockId ) ; return registry . sessions [ ngApimockId ] . selections ; } inheritDoc getEchos ( registry , ngApimockId ? ) { helper . protractor . addSessionIfNonExisting ( registry , ngApimockId ) ; return registry . sessions [ ngApimockId ] . echos ; } inheritDoc getDelays ( registry , ngApimockId ? ) { helper . protractor . addSessionIfNonExisting ( registry , ngApimockId ) ; return registry . sessions [ ngApimockId ] . delays ; } } export default ProtractorGetMocksHandler ;