summaryrefslogtreecommitdiff
path: root/web-ui/test/spec/mail_view/ui/recipients/recipients_input.spec.js
diff options
context:
space:
mode:
Diffstat (limited to 'web-ui/test/spec/mail_view/ui/recipients/recipients_input.spec.js')
-rw-r--r--web-ui/test/spec/mail_view/ui/recipients/recipients_input.spec.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/web-ui/test/spec/mail_view/ui/recipients/recipients_input.spec.js b/web-ui/test/spec/mail_view/ui/recipients/recipients_input.spec.js
index 56bb1120..499065c2 100644
--- a/web-ui/test/spec/mail_view/ui/recipients/recipients_input.spec.js
+++ b/web-ui/test/spec/mail_view/ui/recipients/recipients_input.spec.js
@@ -2,7 +2,7 @@ describeComponent('mail_view/ui/recipients/recipients_input',function () {
'use strict';
beforeEach(function () {
- setupComponent({name: 'to'});
+ this.setupComponent({name: 'to'});
});
describe('keys that finish address input', function () {
@@ -42,7 +42,7 @@ describeComponent('mail_view/ui/recipients/recipients_input',function () {
this.$node.trigger(enterAddressKeyPressEvent);
expect(enterAddressKeyPressEvent.preventDefault).toHaveBeenCalled();
- enterAddressKeyPressEvent.preventDefault.reset();
+ enterAddressKeyPressEvent.preventDefault.calls.reset();
this.$node.val('anything');
this.$node.trigger(enterAddressKeyPressEvent);
expect(enterAddressKeyPressEvent.preventDefault).toHaveBeenCalled();