From a8f3d31bd41def7a334b5a2f4f260ec77ce76d2c Mon Sep 17 00:00:00 2001 From: Duda Dornelles Date: Thu, 16 Oct 2014 17:08:55 +0200 Subject: Making sure only the tags are shown in the mail when you update the mail tags. Also, disabling the tags feature toggles --- web-ui/test/spec/services/mail_service.spec.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'web-ui/test') diff --git a/web-ui/test/spec/services/mail_service.spec.js b/web-ui/test/spec/services/mail_service.spec.js index 85680cb6..3ce223cc 100644 --- a/web-ui/test/spec/services/mail_service.spec.js +++ b/web-ui/test/spec/services/mail_service.spec.js @@ -81,7 +81,8 @@ describeComponent('services/mail_service', function () { it('updates the tags of the desired message', function () { spyOn(this.component, 'refreshResults'); - var spyAjax = spyOn($, 'ajax').andReturn({done: function(f) { f(); return {fail: function() {}};}}); + var updateTagsReturnValue = { tags: ['website'], mailbox: 'inbox'} + var spyAjax = spyOn($, 'ajax').andReturn({done: function(f) { f(updateTagsReturnValue); return {fail: function() {}};}}); var spyEvent = spyOnEvent(document, Pixelated.events.mail.tags.updated); var component = jasmine.createSpyObj('component',['successUpdateTags']); -- cgit v1.2.3