<commit_before>/* eslint-env jest */

import openxConfig from '../openxConfig'

beforeEach(() => {
  delete global.OX_dfp_options
  delete window.OX_dfp_options
  delete global.OX_dfp_ads
  delete window.OX_dfp_ads
})

describe('OpenX config', function () {
  it('sets window.OX_dfp_options', () => {
    expect(window.OX_dfp_options).toBeUndefined()
    openxConfig()
    expect(window.OX_dfp_options).toEqual({ prefetch: true })
  })

  it('sets window.OX_dfp_ads', () => {
    expect(window.OX_dfp_ads).toBeUndefined()
    openxConfig()
    expect(window.OX_dfp_ads.length).toBe(2)
  })
})<commit_msg>Debug window var deletion.<commit_after>/* eslint-env jest */

import openxConfig from '../openxConfig'

beforeEach(() => {
  console.log(window.OX_dfp_ads)
  delete global.OX_dfp_options
  delete window.OX_dfp_options
  delete global.OX_dfp_ads
  delete window.OX_dfp_ads
  console.log(window.OX_dfp_ads)
})

describe('OpenX config', function () {
  it('sets window.OX_dfp_options', () => {
    expect(window.OX_dfp_options).toBeUndefined()
    openxConfig()
    expect(window.OX_dfp_options).toEqual({ prefetch: true })
  })

  it('sets window.OX_dfp_ads', () => {
    expect(window.OX_dfp_ads).toBeUndefined()
    openxConfig()
    expect(window.OX_dfp_ads.length).toBe(2)
  })
})
{'fraction_non_alphanumeric': 0.14685314685314685, 'fraction_numerical': 0.001554001554001554, 'mean_word_length': 4.434599156118144, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '2264199', 'n_tokens_mistral': 497, 'n_tokens_neox': 471, 'n_words': 67}