From f0a179fdb57a4de6e915dd5541c5f8feeb0a63bf Mon Sep 17 00:00:00 2001 From: joshaber Date: Mon, 15 Feb 2016 17:19:32 -0500 Subject: [PATCH] Add the decoration after subscribing to state updates Same fixe as #10792. --- spec/text-editor-presenter-spec.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/text-editor-presenter-spec.coffee b/spec/text-editor-presenter-spec.coffee index c353e21c0..57c674033 100644 --- a/spec/text-editor-presenter-spec.coffee +++ b/spec/text-editor-presenter-spec.coffee @@ -1336,9 +1336,9 @@ describe "TextEditorPresenter", -> presenter = buildPresenter() blockDecoration2 = addBlockDecorationBeforeScreenRow(3) blockDecoration3 = addBlockDecorationBeforeScreenRow(7) - blockDecoration4 = addBlockDecorationAfterScreenRow(7) + blockDecoration4 = null - waitsForStateToUpdate presenter + waitsForStateToUpdate presenter, blockDecoration4 = addBlockDecorationAfterScreenRow(7) runs -> expect(lineStateForScreenRow(presenter, 0).precedingBlockDecorations).toEqual([blockDecoration1]) expect(lineStateForScreenRow(presenter, 0).followingBlockDecorations).toEqual([])