diff options
author | Victor Shyba <victor.shyba@gmail.com> | 2015-04-15 11:55:24 -0300 |
---|---|---|
committer | Victor Shyba <victor.shyba@gmail.com> | 2015-04-15 11:55:24 -0300 |
commit | 06344247daeb7d14547cfc1d96661995a1a97329 (patch) | |
tree | 6eb5d845e5c892b6cbdaf3160f1b422112c3a6a3 /web-ui | |
parent | c7cddf5ccda132b2babc76ab310840cf232b2950 (diff) |
Test description was not matching code
Fixing for #189
Diffstat (limited to 'web-ui')
-rw-r--r-- | web-ui/test/spec/mail_view/ui/send_button.spec.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/web-ui/test/spec/mail_view/ui/send_button.spec.js b/web-ui/test/spec/mail_view/ui/send_button.spec.js index 17de1531..351b4a08 100644 --- a/web-ui/test/spec/mail_view/ui/send_button.spec.js +++ b/web-ui/test/spec/mail_view/ui/send_button.spec.js @@ -25,6 +25,14 @@ describeComponent('mail_view/ui/send_button', function () { expect(this.$node).not.toBeDisabled(); }); + + it('gets enabled if recipients:updated also with invalid email', function () { + $(document).trigger(Pixelated.events.ui.recipients.inputFieldHasCharacters, { name: 'to' }); + $(document).trigger(Pixelated.events.ui.recipients.updated, { newRecipients: ['InvalidEmail']}); + + expect(this.$node).not.toBeDisabled(); + expect(this.$node.text()).toBe('Send'); + }); }); describe('multiple events', function () { @@ -63,14 +71,6 @@ describeComponent('mail_view/ui/send_button', function () { expect(this.$node).toBeDisabled(); }); - - it('gets disabled if recipients:updated with invalid email', function () { - $(document).trigger(Pixelated.events.ui.recipients.inputFieldHasCharacters, { name: 'to' }); - $(document).trigger(Pixelated.events.ui.recipients.updated, { newRecipients: ['InvalidEmail']}); - - expect(this.$node).not.toBeDisabled(); - expect(this.$node.text()).toBe('Send'); - }); }); describe('on click', function () { |