]> git.r.bdr.sh - rbdr/dotfiles/blame_incremental - atom/packages/vim-surround/spec/spec-helper.coffee
Update vim plugins
[rbdr/dotfiles] / atom / packages / vim-surround / spec / spec-helper.coffee
... / ...
CommitLineData
1getEditorElement = (callback) ->
2 textEditor = null
3
4 waitsForPromise ->
5 atom.project.open().then (e) ->
6 textEditor = e
7
8 runs ->
9 element = document.createElement("atom-text-editor")
10 element.setModel(textEditor)
11 callback(element)
12
13module.exports = { getEditorElement }