summaryrefslogtreecommitdiff
path: root/web-ui/test/spec/mail_view/ui/draft_box.spec.js
diff options
context:
space:
mode:
Diffstat (limited to 'web-ui/test/spec/mail_view/ui/draft_box.spec.js')
-rw-r--r--web-ui/test/spec/mail_view/ui/draft_box.spec.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/web-ui/test/spec/mail_view/ui/draft_box.spec.js b/web-ui/test/spec/mail_view/ui/draft_box.spec.js
index 9a93791d..19b264b0 100644
--- a/web-ui/test/spec/mail_view/ui/draft_box.spec.js
+++ b/web-ui/test/spec/mail_view/ui/draft_box.spec.js
@@ -14,7 +14,7 @@ describeComponent('mail_view/ui/draft_box', function () {
it('fetches the email to draft', function () {
var mailWantEvent = spyOnEvent(document, Pixelated.events.mail.want);
- setupComponent({mailIdent: '1'});
+ this.setupComponent({mailIdent: '1'});
expect(mailWantEvent).toHaveBeenTriggeredOnAndWith(document, {
mail: '1', caller: this.component
@@ -24,7 +24,7 @@ describeComponent('mail_view/ui/draft_box', function () {
describe('after initialize', function () {
beforeEach(function () {
- setupComponent({mailIdent: '1'});
+ this.setupComponent({mailIdent: '1'});
});
it('renders the compose box when mail is received', function () {
@@ -44,7 +44,7 @@ describeComponent('mail_view/ui/draft_box', function () {
});
it('sending a draft sends the correct mailIdent', function () {
- setupComponent({mailIdent: mail.ident});
+ this.setupComponent({mailIdent: mail.ident});
this.component.trigger(this.component, Pixelated.events.mail.here, { mail: mail});
var sendDraftEvent = spyOnEvent(document, Pixelated.events.mail.saveDraft);
@@ -56,7 +56,7 @@ describeComponent('mail_view/ui/draft_box', function () {
it('shows no message selected pane when draft is sent', function() {
var openNoMessageSelectedEvent = spyOnEvent(document, Pixelated.events.dispatchers.rightPane.openNoMessageSelected);
- setupComponent({mailIdent: mail.ident});
+ this.setupComponent({mailIdent: mail.ident});
this.component.trigger(this.component, Pixelated.events.mail.here, { mail: mail});
this.component.trigger(document, Pixelated.events.mail.sent);