diff options
author | Patrick Maia <pixelated-team+patrick@thoughtworks.com> | 2014-08-08 17:51:33 -0300 |
---|---|---|
committer | Patrick Maia <patrickjourdanmaia@gmail.com> | 2014-08-08 17:51:33 -0300 |
commit | 97e762a0832593031ae71ab1e11d4c0e377a00f4 (patch) | |
tree | 213e835f4effbaf97f0922e5941065b1329d0501 /web-ui/test/spec/mail_view/ui/reply_section.spec.js | |
parent | f22a6a32e901f52b2b3f2b3fd8625c43302ff001 (diff) |
replaces Smail by Pixelated in all js files
Diffstat (limited to 'web-ui/test/spec/mail_view/ui/reply_section.spec.js')
-rw-r--r-- | web-ui/test/spec/mail_view/ui/reply_section.spec.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/web-ui/test/spec/mail_view/ui/reply_section.spec.js b/web-ui/test/spec/mail_view/ui/reply_section.spec.js index e5571e2c..c49c0dda 100644 --- a/web-ui/test/spec/mail_view/ui/reply_section.spec.js +++ b/web-ui/test/spec/mail_view/ui/reply_section.spec.js @@ -1,5 +1,5 @@ /*global jasmine */ -/*global Smail */ +/*global Pixelated */ describeComponent('mail_view/ui/reply_section', function () { 'use strict'; @@ -12,7 +12,7 @@ describeComponent('mail_view/ui/reply_section', function () { var mailWantEvent, expectEventData; beforeEach(function () { - mailWantEvent = spyOnEvent(document, Smail.events.mail.want); + mailWantEvent = spyOnEvent(document, Pixelated.events.mail.want); expectEventData = { mail: '12345', caller: this.component @@ -37,7 +37,7 @@ describeComponent('mail_view/ui/reply_section', function () { var mailData, ReplyBox, ForwardBox; beforeEach(function () { - mailData = Smail.testData().mail; + mailData = Pixelated.testData().mail; ReplyBox = require('mail_view/ui/reply_box'); ForwardBox = require('mail_view/ui/forward_box'); spyOn(ReplyBox, 'attachTo'); @@ -46,7 +46,7 @@ describeComponent('mail_view/ui/reply_section', function () { it('for normal reply', function() { this.component.attr.replyType = 'reply'; - this.component.trigger(this.component, Smail.events.mail.here, { mail: mailData }); + this.component.trigger(this.component, Pixelated.events.mail.here, { mail: mailData }); expect(ReplyBox.attachTo).toHaveBeenCalledWith(jasmine.any(Object), { mail: mailData, @@ -56,7 +56,7 @@ describeComponent('mail_view/ui/reply_section', function () { it('for reply to all', function() { this.component.attr.replyType = 'replyall'; - this.component.trigger(this.component, Smail.events.mail.here, { mail: mailData }); + this.component.trigger(this.component, Pixelated.events.mail.here, { mail: mailData }); expect(ReplyBox.attachTo).toHaveBeenCalledWith(jasmine.any(Object), { mail: mailData, @@ -66,7 +66,7 @@ describeComponent('mail_view/ui/reply_section', function () { it('creates a forward box', function() { this.component.attr.replyType = 'forward'; - this.component.trigger(this.component, Smail.events.mail.here, { mail: mailData }); + this.component.trigger(this.component, Pixelated.events.mail.here, { mail: mailData }); expect(ForwardBox.attachTo).toHaveBeenCalledWith(jasmine.any(Object), { mail: mailData @@ -88,7 +88,7 @@ describeComponent('mail_view/ui/reply_section', function () { this.component.attr.mailIdent = 12345; this.component.select('replyButton').click(); - $(document).trigger(Smail.events.ui.composeBox.trashReply); + $(document).trigger(Pixelated.events.ui.composeBox.trashReply); expect(this.component.select('replyButton')).not.toBeHidden(); expect(this.component.select('replyAllButton')).not.toBeHidden(); |