Move to central MIME functions, remove some console.log

And generally address PR feedback.
This commit is contained in:
Scott Nonnenberg 2018-04-12 19:02:20 -07:00
parent f255cbcbe3
commit fce9bb7342
No known key found for this signature in database
GPG key ID: 5F82280C35134661
6 changed files with 21 additions and 17 deletions

View file

@ -359,9 +359,9 @@ describe('Message', () => {
});
it('calls provided async function for each quoted attachment', async () => {
const upgradeAttachment = sinon.stub().returns(Promise.resolve({
const upgradeAttachment = sinon.stub().resolves({
path: '/new/path/on/disk',
}));
});
const upgradeVersion = Message._mapQuotedAttachments(upgradeAttachment);
const message = {