summaryrefslogtreecommitdiff
path: root/web-ui/test/spec/mail_view/data
diff options
context:
space:
mode:
authorNavaL <mnandri@thoughtworks.com>2016-01-11 16:55:25 +0100
committerNavaL <mnandri@thoughtworks.com>2016-01-11 16:56:29 +0100
commit058d14143c179d9923eea433fc63094f4f9059aa (patch)
treecef20e046a64cb44ad0d882465411335cf049007 /web-ui/test/spec/mail_view/data
parent64106a5d6b589616db5ddd07f383b74c66e0b39d (diff)
merging attachment_list ui and data, and making it into a mixin
Issue #573
Diffstat (limited to 'web-ui/test/spec/mail_view/data')
-rw-r--r--web-ui/test/spec/mail_view/data/attachment_list.spec.js35
1 files changed, 0 insertions, 35 deletions
diff --git a/web-ui/test/spec/mail_view/data/attachment_list.spec.js b/web-ui/test/spec/mail_view/data/attachment_list.spec.js
deleted file mode 100644
index 45167e33..00000000
--- a/web-ui/test/spec/mail_view/data/attachment_list.spec.js
+++ /dev/null
@@ -1,35 +0,0 @@
-describeMixin('mail_view/data/attachment_list', function () {
- 'use strict';
-
- describe('initialization', function() {
- beforeEach(function(){
- this.setupComponent();
- });
-
- it('should add attachment to the list based on uploadedAttachment event', function () {
- var stubAttachment = {attachment_id: 'faked'};
- $(document).trigger(Pixelated.events.mail.appendAttachment, stubAttachment);
- expect(this.component.attr.attachments).toEqual([stubAttachment]);
-
- var anotherStubAttachment = {attachment_id: 'faked 2'};
- $(document).trigger(Pixelated.events.mail.appendAttachment, anotherStubAttachment);
- expect(this.component.attr.attachments).toEqual([stubAttachment, anotherStubAttachment]);
- });
-
- it('should reset attachment list on compose', function () {
- this.component.attr.attachments = ['some array'];
- $(document).trigger(Pixelated.events.mail.resetAttachments);
-
- expect(this.component.attr.attachments).toEqual([]);
- });
-
- it('should reset attachment list and tear down when email sent', function () {
- this.component.attr.attachments = ['some array'];
- $(document).trigger(Pixelated.events.mail.sent);
-
- expect(this.component.attr.attachments).toEqual([]);
- });
-
- });
-
-});