old_contents: /**
   * @fileoverview This is a temporary file that is used to implement 'fake'
   * versions of the Auth utility functions used in the ViewTrips components.
   *
   * TODO(Issue 55): Remove this whole file function and replace any imports to
   *                 this file with Auth utils.
   */
  
  
  /**
   * Temporary hardcoded function that returns the current users email.
   *
   * @return Hardcoded user email string.
   */
  export function getCurUserEmail() {
    return 'matt.murdock';
  }
  
  /**
   * Temporary hardcoded function that returns the current users uid.
   *
   * @return Hardcoded user uid string.
   */
  export function getCurUserUid() {
    return getUserUidFromUserEmail(getCurUserEmail());
  }
  
  /**
   * Temporary hardcoded function that returns the user's uid given the user's
   * email.
   *
   * @param {string} userEmail A users email.
   * @return {string} The 'fake' uid associated with the user email that is
   *     created with the form '_`userEmail`_'.
   */
  export function getUserUidFromUserEmail(userEmail) {
    return '_' + userEmail + '_';
  }
  
  /**
   * Temporary hardcoded function that returns the a user's email given the
   * fake uid that was stored in the Trip document.
   *
   * @param {string} uid Fake string uid that is in the form '_userEmail_'.
   * @return {string} The email corresponding to the fake uid.
   */
  export function getUserEmailFromUid(uid) {
    return uid.substring(1, uid.length - 1);
  }
  
  const authUtils = {
    getCurUserEmail,
    getCurUserUid,
    getUserUidFromUserEmail,
    getUserEmailFromUid
  }
  
  export default authUtils;
  
new_contents: import authUtils from '../AuthUtils';
  
  /**
   * @fileoverview This is a temporary file that is used to implement 'fake'
   * versions of the Auth utility functions used in the ViewTrips components.
   * As of right now, the only 'real' auth function used is `getCurUserEmail()`
   * but a fake user uid is still used due to the lack of a set of functions
   * that can convert  user email <--> user uid.
   *
   * TODO(Issue 55): Remove this whole file function and replace any imports to
   *                 this file with Auth utils.
   */
  
  /**
   * Temporary 'fake'/hardcoded function that returns the current users uid.
   *
   * @return Fake user uid string the form '_userEmail_'.
   */
  export function getCurUserUid() {
    return getUserUidArrFromUserEmailArr([authUtils.getCurUserEmail()]).pop();
  }
  
  /**
   * Temporary 'fake'/hardcoded function that returns the an array of 'fake' user
   * uids given an array of user emails.
   *
   * @param {!Array<!string>} userEmailArr Array of user email strings.
   * @return {!Array<!string>} Array of fake uuids corresponding to the user
   *     emails in `userEmailArr`.
   */
  export function getUserUidArrFromUserEmailArr(userEmailArr) {
    return userEmailArr.map(userEmail => '_' + userEmail + '_');
  }
  
  /**
   * Temporary 'fake'/hardcoded function that returns the an array of user emails
   * given an array of 'fake' user uids.
   *
   * @param {!Array<!string>} uuidArr Array of fake user uids that are
   *     in the form '_userEmail_'.
   * @return {!Array<!string>} Array of user emails corresponding to the user
   *     uids in `uuidArr`.
   */
  export function getUserEmailArrFromUserUidArr(uuidArr) {
    return uuidArr.map(uuid => uuid.substring(1, uuid.length - 1));
  }
  
  const fakeAuthUtils = {
    getCurUserUid,
    getUserUidArrFromUserEmailArr,
    getUserEmailArrFromUserUidArr,
  }
  
  export default fakeAuthUtils;
  
subject: Refactor temp-aut-utils to incorporate use of real getCurUserEmail and new structure for converting email <-> uid.