import ResetMocksToDefaultsHandler from '../resetMocksToDefaultsHandler' ; import Registry from '../../../registry' ; /** Handler that takes care of resetting the mocks to defaults for runtime. */ class RuntimeResetMocksToDefaultsHandler extends ResetMocksToDefaultsHandler { inheritDoc resetToDefaults ( registry ) { registry . selections = JSON . parse ( JSON . stringify ( registry . defaults ) ) ; } inheritDoc getSelections ( registry , ngApimockId ? ) { return registry . selections ; } } export default RuntimeResetMocksToDefaultsHandler ;