{"size": 685, "ext": "js", "max_stars_repo_path": "static/js/components/notifications/index_test.js", "max_stars_repo_name": "mitodl/mitxonline", "max_stars_repo_stars_event_min_datetime": "2021-07-25T21:29:12.000Z", "max_stars_repo_stars_event_max_datetime": "2021-07-25T21:29:12.000Z", "max_issues_repo_path": "static/js/components/notifications/index_test.js", "max_issues_repo_name": "drhodes/mitxonline", "max_issues_repo_issues_event_min_datetime": "2021-07-13T14:58:52.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-31T20:50:10.000Z", "max_forks_repo_path": "static/js/components/notifications/index_test.js", "max_forks_repo_name": "drhodes/mitxonline", "max_forks_repo_forks_event_min_datetime": "2021-07-25T21:28:32.000Z", "max_forks_repo_forks_event_max_datetime": "2021-07-25T21:28:32.000Z"}
{"max_stars_count": 1, "max_issues_count": 420, "max_forks_count": 1, "avg_line_length": 22.8333333333, "max_line_length": 70, "alphanum_fraction": 0.6408759124}
// @flow
import React from "react"
import { assert } from "chai"
import { shallow } from "enzyme"

import { TextNotification } from "."
import { routes } from "../../lib/urls"
import IntegrationTestHelper from "../../util/integration_test_helper"

describe("Notification component", () => {
  let helper, dismissStub

  beforeEach(() => {
    helper = new IntegrationTestHelper()
    dismissStub = helper.sandbox.stub()
  })

  afterEach(() => {
    helper.cleanup()
  })

  it("TextNotification", () => {
    const text = "Some text"
    const wrapper = shallow(
      <TextNotification text={"Some text"} dismiss={dismissStub} />
    )
    assert.equal(wrapper.text(), text)
  })
})
