From d4366aa09e7858c7b8ec72c355d54f6494be30dd Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Fri, 30 May 2014 13:57:26 -0700 Subject: [PATCH] Pass element not jQuery object as target Previously this was passing since ctrl-z was completely unbound at this point which isn't the case on Windows. --- spec/atom-spec.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/atom-spec.coffee b/spec/atom-spec.coffee index d2e6392af..8617edef6 100644 --- a/spec/atom-spec.coffee +++ b/spec/atom-spec.coffee @@ -380,8 +380,8 @@ describe "the `atom` global", -> runs -> atom.packages.deactivatePackage('package-with-keymaps') - expect(atom.keymaps.findKeyBindings(keystrokes:'ctrl-z', target:$$ -> @div class: 'test-1'[0])).toHaveLength 0 - expect(atom.keymaps.findKeyBindings(keystrokes:'ctrl-z', target:$$ -> @div class: 'test-2'[0])).toHaveLength 0 + expect(atom.keymaps.findKeyBindings(keystrokes:'ctrl-z', target: ($$ -> @div class: 'test-1')[0])).toHaveLength 0 + expect(atom.keymaps.findKeyBindings(keystrokes:'ctrl-z', target: ($$ -> @div class: 'test-2')[0])).toHaveLength 0 it "removes the package's stylesheets", -> waitsForPromise ->