<commit_before>import { MockBoot } from "v2/DevTools/MockBoot"
import { mount } from "enzyme"
import React from "react"
import { Footer, LargeFooter, SmallFooter } from "../Footer"

describe("Footer", () => {
  beforeAll(() => {
    window.matchMedia = undefined // Immediately set matching media query in Boot
  })

  it("is responsive", () => {
    const small = mount(
      <MockBoot breakpoint="xs">
        <Footer />
      </MockBoot>
    )
    expect(small.find(SmallFooter).length).toEqual(1)

    const large = mount(
      <MockBoot breakpoint="lg">
        <Footer />
      </MockBoot>
    )
    expect(large.find(LargeFooter).length).toEqual(1)
  })
})
<commit_msg>Add tests for download app components<commit_after>import { MockBoot } from "v2/DevTools/MockBoot"
import { mount } from "enzyme"
import React from "react"
import { Footer, LargeFooter, SmallFooter } from "../Footer"
import { DownloadAppBadge } from "v2/Components/DownloadAppBadge"

describe("Footer", () => {
  beforeAll(() => {
    window.matchMedia = undefined // Immediately set matching media query in Boot
  })

  const getSmallFooterWrapper = () =>
    mount(
      <MockBoot breakpoint="xs">
        <Footer />
      </MockBoot>
    )

  const getLargeFooterWrapper = () =>
    mount(
      <MockBoot breakpoint="lg">
        <Footer />
      </MockBoot>
    )

  it("is responsive", () => {
    const small = getSmallFooterWrapper()
    expect(small.find(SmallFooter).length).toEqual(1)

    const large = getLargeFooterWrapper()
    expect(large.find(LargeFooter).length).toEqual(1)
  })

  it("renders prompts to download the app", () => {
    const small = getSmallFooterWrapper()
    const large = getLargeFooterWrapper()

    expect(small.find("DownloadAppBanner").length).toEqual(0)
    expect(large.find("DownloadAppBanner").length).toEqual(1)
    expect(small.find(DownloadAppBadge).length).toEqual(1)
    expect(large.find(DownloadAppBadge).length).toEqual(1)
  })
})

{'fraction_non_alphanumeric': 0.1450381679389313, 'fraction_numerical': 0.0055979643765903305, 'mean_word_length': 3.4479638009049776, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 24, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3390155', 'n_tokens_mistral': 621, 'n_tokens_neox': 609, 'n_words': 125}