diff options
author | Patrick Maia <patrickjourdanmaia@gmail.com> | 2014-09-22 17:02:05 -0300 |
---|---|---|
committer | Patrick Maia <patrickjourdanmaia@gmail.com> | 2014-09-22 17:02:05 -0300 |
commit | d645a4d150c10142f79caee7f60d531df824c334 (patch) | |
tree | 9248763486fcc39d76d44bd89cad81eede818de6 /web-ui/test/spec/mail_view | |
parent | 25212515fbddfd7cba785f98a633dba11063591b (diff) |
#51 - refreshs tag list on tag removal
Diffstat (limited to 'web-ui/test/spec/mail_view')
-rw-r--r-- | web-ui/test/spec/mail_view/ui/mail_view.spec.js | 7 |
1 files changed, 7 insertions, 0 deletions
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 36b58b87..58577f90 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 @@ -41,6 +41,13 @@ describeComponent('mail_view/ui/mail_view', function () { expect(updateSpy).toHaveBeenTriggeredOn(document); }); + it('remove tag triggers refreshTagList event', function(){ + var refreshTagListEvent = spyOnEvent(document, Pixelated.events.dispatchers.tags.refreshTagList); + this.component.displayMail({}, testData); + this.component.removeTag('inbox'); + expect(refreshTagListEvent).toHaveBeenTriggeredOn(document); + }); + it('verifies if new tag input is hidden when rendering mail view', function() { this.component.displayMail({}, testData); |