]> git.r.bdr.sh - rbdr/dotfiles/blame - atom/packages/vim-surround/spec/spec-helper.coffee
Ignore tmuxp config
[rbdr/dotfiles] / atom / packages / vim-surround / spec / spec-helper.coffee
CommitLineData
24c7594d
BB
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 }