diff options
author | Alexandre Pretto Nunes <anunes@thoughtworks.com> | 2015-01-12 20:08:00 -0200 |
---|---|---|
committer | Alexandre Pretto Nunes <anunes@thoughtworks.com> | 2015-01-12 20:08:15 -0200 |
commit | 6f6f8a338ec460aea761de320aaccc25b0eb2d42 (patch) | |
tree | 9442094d5e63be6d824c455424cc60c58ae5ad4d /web-ui/test/spec/mail_view/ui/recipients/recipients_input.spec.js | |
parent | cd741c3cb6a9c64ad30257240565be884e9084ae (diff) |
Improve jshint configuration
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.js | 12 |
1 files changed, 6 insertions, 6 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 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'}); - }) + }); }); }); |