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:
parent
9723d6f0cd
commit
d971969b5f
@ -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({
|
||||
|
Loading…
Reference in New Issue
Block a user