index.js
function restoreService(service) {
  if (services[service]) {
    restoreAllMethods(service);
    if (services[service].stub)
      services[service].stub.restore();
    delete services[service];
  } else {
    console.log('Service ' + service + ' was never instantiated yet you try to restore it.');
  }
}
function restoreService(service) {
  if (services[service]) {
    restoreAllMethods(service);
    if (services[service].stub)
      services[service].stub.restore();
    delete services[service];
  } else {
    console.log('Service ' + service + ' was never instantiated yet you try to restore it.');
  }
}
function restoreService ( service ) { if ( services [ service ] ) { restoreAllMethods ( service ) ; if ( services [ service ] . stub ) services [ service ] . stub . restore ( ) ; delete services [ service ] ; } else { console . log ( 'Service ' + service + ' was never instantiated yet you try to restore it.' ) ; } }
Restores a single mocked service and its corresponding methods.
Restores a single mocked service and its corresponding methods .