1
0
mirror of https://github.com/moparisthebest/mail synced 2024-11-26 02:42:17 -05:00

fix test for login with existing user

This commit is contained in:
Felix Hammerl 2013-12-04 11:46:13 +01:00
parent 8e0d0ff4fd
commit 33e23a992c

View File

@ -71,7 +71,10 @@ define(function(require) {
pathSpy = sinon.spy(location, 'path');
scope.passphrase = passphrase;
keychainMock.getUserKeyPair.withArgs(emailAddress).yields(null, keypair);
emailDaoMock.unlock.withArgs(keypair, passphrase).yields(null);
emailDaoMock.unlock.withArgs({
keypair: keypair,
passphrase: passphrase
}).yields();
scope.confirmPassphrase();