diff options
author | Giovane <giovaneliberato@gmail.com> | 2015-11-09 15:52:16 -0200 |
---|---|---|
committer | Folker Bernitt <fbernitt@thoughtworks.com> | 2015-11-09 18:58:52 +0100 |
commit | f2f5473ead184032d1de6208bc2530dfb88455fc (patch) | |
tree | 248a9e4122ff5316e36698161e284e2f7579f4aa /web-ui/test | |
parent | a222f811d07846dfdbeac963fa753fedbd88c13a (diff) |
Adds style and tag information on 'No Mails available' message.
- Issue #503
Diffstat (limited to 'web-ui/test')
-rw-r--r-- | web-ui/test/spec/dispatchers/middle_pane_dispatchers.spec.js | 4 | ||||
-rw-r--r-- | web-ui/test/spec/mail_view/ui/no_mails_available_pane.spec.js | 7 |
2 files changed, 4 insertions, 7 deletions
diff --git a/web-ui/test/spec/dispatchers/middle_pane_dispatchers.spec.js b/web-ui/test/spec/dispatchers/middle_pane_dispatchers.spec.js index 265e1d4f..3d55cbaa 100644 --- a/web-ui/test/spec/dispatchers/middle_pane_dispatchers.spec.js +++ b/web-ui/test/spec/dispatchers/middle_pane_dispatchers.spec.js @@ -31,14 +31,14 @@ describeComponent('dispatchers/middle_pane_dispatcher', function () { spyOn(noMailsAvailablePane, 'teardownAll'); }); - it('should listen to no mails available event and show noMailsAvailablePane', function () { + it('should listen to mails available event and show noMailsAvailablePane', function () { var mail_list = { mails: []}; this.component.trigger(document, Pixelated.events.mails.available, mail_list); expect(noMailsAvailablePane.attachTo).toHaveBeenCalled(); }); - it('should tbd', function () { + it('should listen to mails available event and do not show noMailsAvailablePane', function () { var pretend_to_be_a_mail = {}; var mail_list = { mails: [pretend_to_be_a_mail]}; this.component.trigger(document, Pixelated.events.mails.available, mail_list); diff --git a/web-ui/test/spec/mail_view/ui/no_mails_available_pane.spec.js b/web-ui/test/spec/mail_view/ui/no_mails_available_pane.spec.js index da19cf2e..2fee45ac 100644 --- a/web-ui/test/spec/mail_view/ui/no_mails_available_pane.spec.js +++ b/web-ui/test/spec/mail_view/ui/no_mails_available_pane.spec.js @@ -2,12 +2,9 @@ describeComponent('mail_view/ui/no_mails_available_pane', function () { 'use strict'; describe('after initialization', function () { - beforeEach(function () { - this.setupComponent(); - }); - it('renders template', function () { - expect(this.$node.html()).toMatch('<div class="text">NO MAILS AVAILABLE.</div>'); + this.setupComponent({tag: 'inbox'}); + expect(this.$node.html()).toMatch('<div class="text">NO EMAILS IN \'INBOX\'.</div>'); }); }); }); |