diff options
author | Craig Campbell <iamcraigcampbell@gmail.com> | 2013-05-19 23:37:22 -0400 |
---|---|---|
committer | Craig Campbell <iamcraigcampbell@gmail.com> | 2013-05-19 23:37:22 -0400 |
commit | f53ef08a8f10f96c5b26548c679f69f203c8fd7f (patch) | |
tree | 2cc3a21acb199a9f20b0c7b7de576e90a099464f | |
parent | b3c133b2e7ed345e221d065cb2fefa625a393a4e (diff) | |
download | mousetrap-f53ef08a8f10f96c5b26548c679f69f203c8fd7f.zip mousetrap-f53ef08a8f10f96c5b26548c679f69f203c8fd7f.tar.gz mousetrap-f53ef08a8f10f96c5b26548c679f69f203c8fd7f.tar.bz2 |
Play nicely with old Safariorigin/mocha
-rw-r--r-- | tests/test.mousetrap.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test.mousetrap.js b/tests/test.mousetrap.js index 8a342c7..06bb145 100644 --- a/tests/test.mousetrap.js +++ b/tests/test.mousetrap.js @@ -124,8 +124,8 @@ describe('Mousetrap.bind', function() { expect(spy.callCount).to.equal(1, 'callback should fire'); expect(spy.args[0][0]).to.be.an.instanceOf(Event, 'first argument should be Event'); - expect(spy.args[0][0].cancelBubble).to.be.true; - expect(spy.args[0][0].defaultPrevented).to.be.true; + expect(spy.args[0][0].cancelBubble).to.be.True; + expect(spy.args[0][0].defaultPrevented).to.be.True; // try without return false spy = sinon.spy(); @@ -134,8 +134,8 @@ describe('Mousetrap.bind', function() { expect(spy.callCount).to.equal(1, 'callback should fire'); expect(spy.args[0][0]).to.be.an.instanceOf(Event, 'first argument should be Event'); - expect(spy.args[0][0].cancelBubble).to.be.false; - expect(spy.args[0][0].defaultPrevented).to.be.false; + expect(spy.args[0][0].cancelBubble).to.be.False; + expect(spy.args[0][0].defaultPrevented).to.be.False; }); it('capslock key is ignored', function() { |