<commit_before>/* eslint-env jest */
import { init } from 'next-firebase-auth'
import initNFA from '../initNFA'

jest.mock('next-firebase-auth')

afterEach(() => {
  jest.clearAllMocks()
})

describe('initNFA', () => {
  it('calls next-firebase-auth init', () => {
    expect.assertions()
    initNFA()
    expect(init).toHaveBeenCalled()
  })<commit_msg>Add fake inputs for test<commit_after>/* eslint-env jest */
import { init } from 'next-firebase-auth'
import initNFA from '../initNFA'

jest.mock('next-firebase-auth')

afterEach(() => {
  jest.clearAllMocks()
})

const getMockArgs = () => ({
  firebaseProjectId: 'some-project-id',
  firebasePrivateKey: 'fake-super-secret-key',
  firebaseClientEmail: 'some-client-email',
  firebaseDatabaseURL: 'some-database-url',
  firebasePublicAPIKey: 'some-public-api-key',
  cookieKeys: ['fake-key-1', 'another-fake-key'],
})

describe('initNFA', () => {
  it('calls next-firebase-auth init', () => {
    expect.assertions()
    const input = getMockArgs()
    initNFA(input)
    expect(init).toHaveBeenCalled()
  })
{'fraction_non_alphanumeric': 0.18344308560677328, 'fraction_numerical': 0.0009407337723424271, 'mean_word_length': 4.267326732673268, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 10, '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': '4736974', 'n_tokens_mistral': 377, 'n_tokens_neox': 375, 'n_words': 64}