import helper from '../../helper' ; import DeleteVariablesHandler from '../deleteVariableHandler' ; import Registry from '../../../registry' ; /** Handler that takes care of deleting a variable for protractor. */ class ProtractorDeleteVariableHandler extends DeleteVariablesHandler { inheritDoc deleteVariable ( registry , variable , ngApimockId ? ) { helper . protractor . addSessionIfNonExisting ( registry , ngApimockId ) ; delete registry . sessions [ ngApimockId ] . variables [ variable ] ; } } export default ProtractorDeleteVariableHandler ;