1
0
mirror of https://github.com/moparisthebest/mail synced 2024-12-23 07:48:48 -05:00

Fix appController._pgp mocking in read controller test

This commit is contained in:
Tankred Hase 2014-07-01 20:59:10 +02:00
parent b20c6977ca
commit 5aec80da47

View File

@ -26,8 +26,8 @@ define(function(require) {
origInvitation = appController._invitationDao; origInvitation = appController._invitationDao;
appController._invitationDao = invitationMock = sinon.createStubInstance(InvitationDAO); appController._invitationDao = invitationMock = sinon.createStubInstance(InvitationDAO);
origCrypto = appController._crypto; origCrypto = appController._pgp;
appController._crypto = cryptoMock = sinon.createStubInstance(PGP); appController._pgp = cryptoMock = sinon.createStubInstance(PGP);
origOutbox = appController._outboxBo; origOutbox = appController._outboxBo;
appController._outboxBo = outboxMock = sinon.createStubInstance(OutboxBO); appController._outboxBo = outboxMock = sinon.createStubInstance(OutboxBO);
@ -51,7 +51,7 @@ define(function(require) {
afterEach(function() { afterEach(function() {
appController._keychain = origKeychain; appController._keychain = origKeychain;
appController._invitationDao = origInvitation; appController._invitationDao = origInvitation;
appController._crypto = origCrypto; appController._pgp = origCrypto;
appController._outboxBo = origOutbox; appController._outboxBo = origOutbox;
appController._emailDao = origEmailDao; appController._emailDao = origEmailDao;
}); });