{"size": 530, "ext": "js", "max_stars_repo_path": "test/unit_frontend/es/DummyTests.js", "max_stars_repo_name": "davidmehren/web-sharelatex", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "test/unit_frontend/es/DummyTests.js", "max_issues_repo_name": "davidmehren/web-sharelatex", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "test/unit_frontend/es/DummyTests.js", "max_forks_repo_name": "davidmehren/web-sharelatex", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 21.2, "max_line_length": 52, "alphanum_fraction": 0.658490566}
import CodeMirror from 'codemirror'

import fixture from './support/fixture'

const TEXTAREA_HTML = '<textarea>Test</textarea>'

describe('fixtures', function () {
  beforeEach(function () {
    this.textarea = fixture.load(TEXTAREA_HTML)
    this.cm = CodeMirror.fromTextArea(this.textarea)
  })

  afterEach(() => {
    fixture.cleanUp()
  })

  it('loads fixtures', function () {
    expect(this.textarea.value).to.equal('Test')
  })

  it('works with CM', function () {
    expect(this.cm.getValue()).to.equal('Test')
  })
})
