mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-02 15:43:11 -05:00
24 lines
530 B
JavaScript
24 lines
530 B
JavaScript
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')
|
|
})
|
|
})
|