From 533c3b20c98bfbb02b2a3f400588f98f0d5fef19 Mon Sep 17 00:00:00 2001 From: Felix Hammerl Date: Tue, 13 May 2014 16:02:32 +0200 Subject: [PATCH 1/2] update deps --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index e14de62..a36ab76 100644 --- a/package.json +++ b/package.json @@ -11,10 +11,10 @@ }, "dependencies": { "crypto-lib": "https://github.com/whiteout-io/crypto-lib/tarball/v0.1.1", - "imap-client": "https://github.com/whiteout-io/imap-client/tarball/v0.3.0", + "imap-client": "https://github.com/whiteout-io/imap-client/tarball/v0.3.1", "mailreader": "https://github.com/whiteout-io/mailreader/tarball/v0.3.0", - "pgpmailer": "https://github.com/whiteout-io/pgpmailer/tarball/v0.3.0", - "pgpbuilder": "https://github.com/whiteout-io/pgpbuilder/tarball/v0.3.0", + "pgpmailer": "https://github.com/whiteout-io/pgpmailer/tarball/v0.3.1", + "pgpbuilder": "https://github.com/whiteout-io/pgpbuilder/tarball/v0.3.1", "requirejs": "2.1.10" }, "devDependencies": { From e54daf1fd7969e1e9da2b9fea41ade6b40a78e21 Mon Sep 17 00:00:00 2001 From: Felix Hammerl Date: Tue, 13 May 2014 16:43:39 +0200 Subject: [PATCH 2/2] fix tests --- test/new-unit/email-dao-test.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/test/new-unit/email-dao-test.js b/test/new-unit/email-dao-test.js index b8b6085..cc30337 100644 --- a/test/new-unit/email-dao-test.js +++ b/test/new-unit/email-dao-test.js @@ -913,16 +913,7 @@ define(function(require) { describe('getAttachment', function() { var folder = 'asdasdasdasdasd', - uid = 1234, - imapGetStub; - - beforeEach(function() { - imapGetStub = sinon.stub(emailSync, '_getBodyParts'); - }); - - afterEach(function() { - emailSync._getBodyParts.restore(); - }); + uid = 1234; it('should fetch an attachment from imap', function(done) { var attmt = {};