summaryrefslogtreecommitdiff
path: root/web-ui/test/spec/mixins
diff options
context:
space:
mode:
Diffstat (limited to 'web-ui/test/spec/mixins')
-rw-r--r--web-ui/test/spec/mixins/with_mail_edit_base.spec.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/web-ui/test/spec/mixins/with_mail_edit_base.spec.js b/web-ui/test/spec/mixins/with_mail_edit_base.spec.js
index 940b4b5e..601f2c11 100644
--- a/web-ui/test/spec/mixins/with_mail_edit_base.spec.js
+++ b/web-ui/test/spec/mixins/with_mail_edit_base.spec.js
@@ -7,6 +7,12 @@ describeMixin('mixins/with_mail_edit_base', function () {
this.component.buildMail = function (tag) {
return { header: { to: ['a@smth.com'], from: 'b@smth.com', subject: 'Sbject' } };
};
+
+ spyOn(this.component, 'trim_recipient').and.callFake(function(recipients) {
+ return recipients.map(function(recipient) {
+ return recipient.trim();
+ });
+ });
});
describe('initialization', function() {