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
1 changed files with 4 additions and 1 deletions

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();