mirror of
https://github.com/moparisthebest/mail
synced 2025-02-07 02:20:14 -05:00
[WO-277] load body on incoming message
This commit is contained in:
parent
539f034254
commit
431ae8cd89
@ -24,6 +24,8 @@ define(function(require) {
|
||||
$scope.synchronize(function() {
|
||||
// show notification
|
||||
notificationForEmail(email);
|
||||
// get message body
|
||||
$scope.getBody($scope.filteredMessages[0]);
|
||||
});
|
||||
};
|
||||
chrome.notifications.onClicked.addListener(notificationClicked);
|
||||
|
@ -148,9 +148,13 @@ define(function(require) {
|
||||
expect(opts.type).to.equal('basic');
|
||||
expect(opts.message).to.equal('asdasd');
|
||||
expect(opts.title).to.equal('asd');
|
||||
};
|
||||
|
||||
scope.getBody = function() {
|
||||
done();
|
||||
};
|
||||
|
||||
scope.filteredMessages = [{}];
|
||||
emailDaoMock.onIncomingMessage(mail);
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user