summaryrefslogtreecommitdiff
path: root/web-ui/test/spec/services
diff options
context:
space:
mode:
Diffstat (limited to 'web-ui/test/spec/services')
-rw-r--r--web-ui/test/spec/services/mail_service.spec.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/web-ui/test/spec/services/mail_service.spec.js b/web-ui/test/spec/services/mail_service.spec.js
index a76fa7c3..64eaa616 100644
--- a/web-ui/test/spec/services/mail_service.spec.js
+++ b/web-ui/test/spec/services/mail_service.spec.js
@@ -13,7 +13,8 @@ describeComponent('services/mail_service', function () {
} );
it('marks the desired message as read', function () {
- var readRequest = spyOn($, 'ajax').and.returnValue({});
+ var deferred = $.Deferred()
+ var readRequest = spyOn($, 'ajax').and.returnValue(deferred);
this.component.trigger(Pixelated.events.mail.read, {ident: 1});