1
0
mirror of https://github.com/moparisthebest/mail synced 2024-12-21 23:08:50 -05:00

Stub GET requests to key server in integration test

This commit is contained in:
Tankred Hase 2014-10-16 12:02:22 +02:00
parent 9723d6f0cd
commit d971969b5f

View File

@ -269,6 +269,10 @@ describe('Email DAO integration tests', function() {
}, function(err) {
expect(err).to.not.exist;
// stub rest request to key server
sinon.stub(appController._emailDao._keychain._publicKeyDao, 'get').yields(null, mockKeyPair.publicKey);
sinon.stub(appController._emailDao._keychain._publicKeyDao, 'getByUserId').yields(null, mockKeyPair.publicKey);
userStorage = appController._userStorage;
appController.init({