mirror of
https://github.com/moparisthebest/mail
synced 2024-11-29 12:22:22 -05:00
remove angular properties from mail dto
This commit is contained in:
parent
4ed680e9c0
commit
dc59febb8d
@ -1028,10 +1028,13 @@ define(function(require) {
|
|||||||
uid: uid
|
uid: uid
|
||||||
}).yieldsAsync(null, [message]);
|
}).yieldsAsync(null, [message]);
|
||||||
|
|
||||||
localStoreStub = sinon.stub(dao, '_localStoreMessages').withArgs({
|
localStoreStub = sinon.stub(dao, '_localStoreMessages').withArgs(sinon.match(function(o){
|
||||||
folder: folder,
|
expect(o.folder).to.equal(folder);
|
||||||
emails: [message]
|
expect(o.emails[0].uid).to.equal(uid);
|
||||||
}).yieldsAsync();
|
expect(o.emails[0].body).to.equal(body);
|
||||||
|
|
||||||
|
return true;
|
||||||
|
})).yieldsAsync();
|
||||||
|
|
||||||
imapStreamStub = sinon.stub(dao, '_imapStreamText', function(opts, cb) {
|
imapStreamStub = sinon.stub(dao, '_imapStreamText', function(opts, cb) {
|
||||||
expect(opts).to.deep.equal({
|
expect(opts).to.deep.equal({
|
||||||
@ -1079,10 +1082,13 @@ define(function(require) {
|
|||||||
uid: uid
|
uid: uid
|
||||||
}).yieldsAsync(null, [message]);
|
}).yieldsAsync(null, [message]);
|
||||||
|
|
||||||
localStoreStub = sinon.stub(dao, '_localStoreMessages').withArgs({
|
localStoreStub = sinon.stub(dao, '_localStoreMessages').withArgs(sinon.match(function(o){
|
||||||
folder: folder,
|
expect(o.folder).to.equal(folder);
|
||||||
emails: [message]
|
expect(o.emails[0].uid).to.equal(uid);
|
||||||
}).yieldsAsync();
|
expect(o.emails[0].body).to.equal(body);
|
||||||
|
|
||||||
|
return true;
|
||||||
|
})).yieldsAsync();
|
||||||
|
|
||||||
imapStreamStub = sinon.stub(dao, '_imapStreamText', function(opts, cb) {
|
imapStreamStub = sinon.stub(dao, '_imapStreamText', function(opts, cb) {
|
||||||
expect(opts).to.deep.equal({
|
expect(opts).to.deep.equal({
|
||||||
|
Loading…
Reference in New Issue
Block a user