Skip to content

Commit

Permalink
Wait for package activation promise
Browse files Browse the repository at this point in the history
  • Loading branch information
probablycorey committed Feb 7, 2014
1 parent a14aa5a commit 336afc8
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions spec/bracket-matcher-spec.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,13 @@ describe "bracket matching", ->

atom.workspaceView.openSync('sample.js')

atom.packages.activatePackage('bracket-matcher')
editorView = atom.workspaceView.getActiveView()
{editor} = editorView
{buffer} = editor
waitsForPromise ->
atom.packages.activatePackage('bracket-matcher')

runs ->
editorView = atom.workspaceView.getActiveView()
{editor} = editorView
{buffer} = editor

describe "matching bracket highlighting", ->
describe "when the cursor is before a starting pair", ->
Expand Down

0 comments on commit 336afc8

Please sign in to comment.