]> git.r.bdr.sh - rbdr/dotfiles/blob - atom/packages/vim-surround/spec/spec-helper.coffee
Remove easymotion plugin
[rbdr/dotfiles] / atom / packages / vim-surround / spec / spec-helper.coffee
1 getEditorElement = (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
13 module.exports = { getEditorElement }