Skip to content

Commit

Permalink
Play nicely with old Safari
Browse files Browse the repository at this point in the history
  • Loading branch information
ccampbell committed May 20, 2013
1 parent b3c133b commit f53ef08
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test.mousetrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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() {
Expand Down

0 comments on commit f53ef08

Please sign in to comment.