summaryrefslogtreecommitdiff
path: root/web-ui/test/spec
diff options
context:
space:
mode:
authorAlexandre Pretto Nunes <anunes@thoughtworks.com>2015-01-12 16:49:07 -0200
committerAlexandre Pretto Nunes <anunes@thoughtworks.com>2015-01-12 20:08:15 -0200
commitcd741c3cb6a9c64ad30257240565be884e9084ae (patch)
tree7c8a2ef6b4696af192ac0d4f4a3472de68170c92 /web-ui/test/spec
parenteedb11f19463b10699fef0061bba12a8300f9187 (diff)
#153 Move duplicated funcion render to just mail_item.js
Diffstat (limited to 'web-ui/test/spec')
-rw-r--r--web-ui/test/spec/mail_list/ui/mail_items/generic_mail_item.spec.js3
-rw-r--r--web-ui/test/spec/mail_list/ui/mail_list.spec.js1
2 files changed, 3 insertions, 1 deletions
diff --git a/web-ui/test/spec/mail_list/ui/mail_items/generic_mail_item.spec.js b/web-ui/test/spec/mail_list/ui/mail_items/generic_mail_item.spec.js
index 3541506c..88735302 100644
--- a/web-ui/test/spec/mail_list/ui/mail_items/generic_mail_item.spec.js
+++ b/web-ui/test/spec/mail_list/ui/mail_items/generic_mail_item.spec.js
@@ -11,7 +11,8 @@ describeComponent('mail_list/ui/mail_items/generic_mail_item', function () {
this.setupComponent('<li></li>', {
mail: mail,
selected: false,
- tag: 'inbox'
+ tag: 'inbox',
+ templateType: 'single'
});
});
diff --git a/web-ui/test/spec/mail_list/ui/mail_list.spec.js b/web-ui/test/spec/mail_list/ui/mail_list.spec.js
index 095a2a61..1551643d 100644
--- a/web-ui/test/spec/mail_list/ui/mail_list.spec.js
+++ b/web-ui/test/spec/mail_list/ui/mail_list.spec.js
@@ -136,6 +136,7 @@ describeComponent('mail_list/ui/mail_list', function () {
it('should open draft in popstate event if tag is Drafts', function () {
var openDraftEvent = spyOnEvent(document, Pixelated.events.dispatchers.rightPane.openDraft);
+ debugger;
this.component.$node.trigger(Pixelated.events.mails.available, { mails: mailList, mailIdent: '30', tag: 'drafts' });
expect(openDraftEvent).toHaveBeenTriggeredOnAndWith(document, { ident: '30'});