src/parse-mockdb.js
function getHook(className, hookType) {
  if (hooks[className] && hooks[className][hookType]) {
    return hooks[className][hookType];
  }
  return undefined;
}
function getHook(className, hookType) {
  if (hooks[className] && hooks[className][hookType]) {
    return hooks[className][hookType];
  }
  return undefined;
}
function getHook ( className , hookType ) { if ( hooks [ className ] && hooks [ className ] [ hookType ] ) { return hooks [ className ] [ hookType ] ; } return undefined ; }
Retrieves a previously registered hook.

@param {string} className The name of the class to get the hook on.
@param {string} hookType One of 'beforeSave', 'afterSave', 'beforeDelete', 'afterDelete'
Retrieves a previously registered hook .