diff --git a/spec/command-registry-spec.coffee b/spec/command-registry-spec.coffee index ef2147dd0..1656407ad 100644 --- a/spec/command-registry-spec.coffee +++ b/spec/command-registry-spec.coffee @@ -99,8 +99,6 @@ describe "CommandRegistry", -> expect(dispatchedEvent.stopImmediatePropagation).toHaveBeenCalled() it "forwards .preventDefault() calls from the synthetic event to the original", -> - calls = [] - registry.add '.child', 'command', (event) -> event.preventDefault() dispatchedEvent = new CustomEvent('command', bubbles: true) @@ -109,8 +107,6 @@ describe "CommandRegistry", -> expect(dispatchedEvent.preventDefault).toHaveBeenCalled() it "forwards .abortKeyBinding() calls from the synthetic event to the original", -> - calls = [] - registry.add '.child', 'command', (event) -> event.abortKeyBinding() dispatchedEvent = new CustomEvent('command', bubbles: true)