summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCraig Campbell <iamcraigcampbell@gmail.com>2013-05-19 23:37:22 -0400
committerCraig Campbell <iamcraigcampbell@gmail.com>2013-05-19 23:37:22 -0400
commitf53ef08a8f10f96c5b26548c679f69f203c8fd7f (patch)
tree2cc3a21acb199a9f20b0c7b7de576e90a099464f
parentb3c133b2e7ed345e221d065cb2fefa625a393a4e (diff)
downloadmousetrap-origin/mocha.zip
mousetrap-origin/mocha.tar.gz
mousetrap-origin/mocha.tar.bz2
Play nicely with old Safariorigin/mocha
-rw-r--r--tests/test.mousetrap.js8
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() {