Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit 18cc1de

Browse files
authored
Merge pull request #290 from atom/fix-unresolved-promise
Don't return an unresolved Promise on beforeEach()
2 parents f1386c5 + 03a2a02 commit 18cc1de

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

spec/snippets-spec.coffee

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,10 @@ describe "Snippets extension", ->
481481
describe "when the snippet spans multiple lines", ->
482482
beforeEach ->
483483
editor.update({autoIndent: true})
484+
# editor.update() returns a Promise that never gets resolved, so we
485+
# need to return undefined to avoid a timeout in the spec.
486+
# TODO: Figure out why `editor.update({autoIndent: true})` never gets resolved.
487+
return
484488

485489
it "places tab stops correctly", ->
486490
expect(editor.getSoftTabs()).toBeTruthy()

0 commit comments

Comments
 (0)