 
     describe "when the jumpy:toggle event is triggered
     and hotkeys are entered", ->
-        it "jumpy is cleared", ->
+        it "jumpy is cleared", (done) ->
             atom.commands.dispatch workspaceElement, 'jumpy:a'
             atom.commands.dispatch workspaceElement, 'jumpy:c'
             expect(textEditorElement.classList
                 .contains('jumpy-jump-mode')).toBe false
-            expect(textEditor.getOverlayDecorations()).toHaveLength 0
+            setTimeout ->
+              expect(textEditor.getOverlayDecorations()).toHaveLength 0
+              done()
+            , 160
 
     describe "when the jumpy:toggle event is triggered
     and invalid hotkeys are entered", ->

        it "the beacon animation class is added", ->
            atom.commands.dispatch workspaceElement, 'jumpy:a'
            atom.commands.dispatch workspaceElement, 'jumpy:c'
            expect(textEditorElement.shadowRoot
                .querySelectorAll('.beacon').length)
                .toBe 1
        it "the beacon animation class is removed", ->

                ->
                    atom.commands.dispatch workspaceElement, 'jumpy:c'
            runs ->
                expect(textEditorElement
                    .querySelectorAll('.beacon').length)
                    .toBe 0

