summaryrefslogtreecommitdiff
path: root/web-ui/test/spec/mail_view
diff options
context:
space:
mode:
Diffstat (limited to 'web-ui/test/spec/mail_view')
-rw-r--r--web-ui/test/spec/mail_view/data/mail_sender.spec.js2
-rw-r--r--web-ui/test/spec/mail_view/ui/compose_box.spec.js3
-rw-r--r--web-ui/test/spec/mail_view/ui/forward_box.spec.js3
-rw-r--r--web-ui/test/spec/mail_view/ui/mail_actions.spec.js2
-rw-r--r--web-ui/test/spec/mail_view/ui/mail_view.spec.js2
-rw-r--r--web-ui/test/spec/mail_view/ui/recipients/recipients_input.spec.js12
-rw-r--r--web-ui/test/spec/mail_view/ui/reply_box.spec.js3
-rw-r--r--web-ui/test/spec/mail_view/ui/reply_section.spec.js3
8 files changed, 6 insertions, 24 deletions
diff --git a/web-ui/test/spec/mail_view/data/mail_sender.spec.js b/web-ui/test/spec/mail_view/data/mail_sender.spec.js
index 48d46fde..9b6c2828 100644
--- a/web-ui/test/spec/mail_view/data/mail_sender.spec.js
+++ b/web-ui/test/spec/mail_view/data/mail_sender.spec.js
@@ -1,5 +1,3 @@
-/*global Pixelated */
-
describeComponent('mail_view/data/mail_sender', function () {
'use strict';
diff --git a/web-ui/test/spec/mail_view/ui/compose_box.spec.js b/web-ui/test/spec/mail_view/ui/compose_box.spec.js
index d17d4b17..414bc022 100644
--- a/web-ui/test/spec/mail_view/ui/compose_box.spec.js
+++ b/web-ui/test/spec/mail_view/ui/compose_box.spec.js
@@ -1,6 +1,3 @@
-/*global jasmine */
-/*global Pixelated */
-
describeComponent('mail_view/ui/compose_box', function () {
'use strict';
beforeEach(function () {
diff --git a/web-ui/test/spec/mail_view/ui/forward_box.spec.js b/web-ui/test/spec/mail_view/ui/forward_box.spec.js
index 30b3b064..613baa47 100644
--- a/web-ui/test/spec/mail_view/ui/forward_box.spec.js
+++ b/web-ui/test/spec/mail_view/ui/forward_box.spec.js
@@ -1,6 +1,3 @@
-/*global jasmine */
-/*global Pixelated */
-
describeComponent('mail_view/ui/forward_box', function () {
'use strict';
diff --git a/web-ui/test/spec/mail_view/ui/mail_actions.spec.js b/web-ui/test/spec/mail_view/ui/mail_actions.spec.js
index 897726b6..580758a0 100644
--- a/web-ui/test/spec/mail_view/ui/mail_actions.spec.js
+++ b/web-ui/test/spec/mail_view/ui/mail_actions.spec.js
@@ -1,5 +1,3 @@
-/*global Pixelated */
-
describeComponent('mail_view/ui/mail_actions', function () {
'use strict';
diff --git a/web-ui/test/spec/mail_view/ui/mail_view.spec.js b/web-ui/test/spec/mail_view/ui/mail_view.spec.js
index b84ecfe6..de6fc29d 100644
--- a/web-ui/test/spec/mail_view/ui/mail_view.spec.js
+++ b/web-ui/test/spec/mail_view/ui/mail_view.spec.js
@@ -1,5 +1,3 @@
-/*global Pixelated */
-
describeComponent('mail_view/ui/mail_view', function () {
'use strict';
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 d4fb8faf..6297a5aa 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
@@ -126,18 +126,18 @@ describeComponent('mail_view/ui/recipients/recipients_input',function () {
describe('on blur', function() {
it('tokenizes and sanitize recipient email if there is an input val', function() {
var addressEnteredEvent = spyOnEvent(this.$node, Pixelated.events.ui.recipients.entered);
- var blurEvent = $.Event('blur');
- spyOn(blurEvent, 'preventDefault');
+ var blurEvent = $.Event('blur');
+ spyOn(blurEvent, 'preventDefault');
- this.$node.val('a@b.c, Friend <friend@domain.com>; d@e.f , , , , , , , ,');
- this.$node.trigger(blurEvent);
+ this.$node.val('a@b.c, Friend <friend@domain.com>; d@e.f , , , , , , , ,');
+ this.$node.trigger(blurEvent);
- expect(blurEvent.preventDefault).toHaveBeenCalled();
+ expect(blurEvent.preventDefault).toHaveBeenCalled();
expect(addressEnteredEvent.callCount).toEqual(3);
expect(addressEnteredEvent.calls[0].data).toEqual({name: 'to', address: 'a@b.c'});
expect(addressEnteredEvent.calls[1].data).toEqual({name: 'to', address: 'Friend <friend@domain.com>'});
expect(addressEnteredEvent.calls[2].data).toEqual({name: 'to', address: 'd@e.f'});
- })
+ });
});
});
diff --git a/web-ui/test/spec/mail_view/ui/reply_box.spec.js b/web-ui/test/spec/mail_view/ui/reply_box.spec.js
index c81af683..8adefcd0 100644
--- a/web-ui/test/spec/mail_view/ui/reply_box.spec.js
+++ b/web-ui/test/spec/mail_view/ui/reply_box.spec.js
@@ -1,6 +1,3 @@
-/*global jasmine */
-/*global Pixelated */
-
describeComponent('mail_view/ui/reply_box', function () {
'use strict';
diff --git a/web-ui/test/spec/mail_view/ui/reply_section.spec.js b/web-ui/test/spec/mail_view/ui/reply_section.spec.js
index 6bd906bc..9cdf7405 100644
--- a/web-ui/test/spec/mail_view/ui/reply_section.spec.js
+++ b/web-ui/test/spec/mail_view/ui/reply_section.spec.js
@@ -1,6 +1,3 @@
-/*global jasmine */
-/*global Pixelated */
-
describeComponent('mail_view/ui/reply_section', function () {
'use strict';