From effec78faacc4def3cd1f1f7fbedf79eaeb824f5 Mon Sep 17 00:00:00 2001 From: Patrick Maia Date: Wed, 1 Oct 2014 18:46:58 -0300 Subject: #53 - does not show modal on when all tags are removed. Now its allowed to do so. --- web-ui/test/spec/mail_view/ui/mail_view.spec.js | 26 ------------------------- 1 file changed, 26 deletions(-) (limited to 'web-ui/test/spec/mail_view') 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 58577f90..48d7bda2 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 @@ -211,32 +211,6 @@ describeComponent('mail_view/ui/mail_view', function () { expect(openNoMessageSelectedPaneEvent).not.toHaveBeenTriggeredOn(document); }); - describe('archiving email', function() { - it('trigger tag updates events with no tags', function(){ - var tagsUpdateEvent = spyOnEvent(document, Pixelated.events.mail.tags.update); - - Foundation.global.namespace = ''; - $(document).foundation(); - - this.component.displayMail({}, testData); - this.component.archiveIt(); - - expect(tagsUpdateEvent).toHaveBeenTriggeredOnAndWith(document, { ident: testData.mail.ident, tags: []}); - }); - - it('opens no message selected pane', function() { - var openNoMessageSelectedEvent = spyOnEvent(document, Pixelated.events.dispatchers.rightPane.openNoMessageSelected); - - Foundation.global.namespace = ''; - $(document).foundation(); - - this.component.displayMail({}, testData); - this.component.archiveIt(); - - expect(openNoMessageSelectedEvent).toHaveBeenTriggeredOn(document); - }); - }); - it('opens the no message selected pane when clicking the close button', function() { var openNoMessageSelectedEvent = spyOnEvent(document, Pixelated.events.dispatchers.rightPane.openNoMessageSelected); -- cgit v1.2.3