<commit_before>import _ from 'lodash'
import String from 'string'
import gawk from 'gawk'

// Mock out functions of original module
const firebase = jest.genMockFromModule('firebase')

// Define local variables
let mockDatabase = gawk({})
let mockAuthUserId = 'mockAuthUserId'

// Mocked Methods
// ##############

firebase.auth = () => {
  return {
    currentUser: {
      uid: mockAuthUserId
    }
  }
}<commit_msg>updated firebase mock to support tests<commit_after>import _ from 'lodash'
import String from 'string'
import gawk from 'gawk'

// Mock out functions of original module
const firebase = jest.genMockFromModule('firebase')

// Define local variables
let mockDatabase = gawk({})
let mockAuthUserId = 'mockAuthUserId'
let mockUser = {
  uid: mockAuthUserId
}

// Mocked Methods
// ##############

firebase.auth = () => {
  return {
    currentUser: mockUser,
    onAuthStateChanged: (callback) => {
      callback(mockUser)
    }
  }
}
{'fraction_non_alphanumeric': 0.13593256059009484, 'fraction_numerical': 0.0, 'mean_word_length': 3.9479166666666665, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6304381', 'n_tokens_mistral': 294, 'n_tokens_neox': 294, 'n_words': 83}