mirror of
https://github.com/moparisthebest/mail
synced 2025-03-11 06:59:45 -04: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) {
|
}, function(err) {
|
||||||
expect(err).to.not.exist;
|
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;
|
userStorage = appController._userStorage;
|
||||||
|
|
||||||
appController.init({
|
appController.init({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user