From 33e23a992cd8e984336fafab35cb1050d574dd18 Mon Sep 17 00:00:00 2001 From: Felix Hammerl Date: Wed, 4 Dec 2013 11:46:13 +0100 Subject: [PATCH] fix test for login with existing user --- test/new-unit/login-existing-ctrl-test.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/new-unit/login-existing-ctrl-test.js b/test/new-unit/login-existing-ctrl-test.js index 2e081b7..29fea16 100644 --- a/test/new-unit/login-existing-ctrl-test.js +++ b/test/new-unit/login-existing-ctrl-test.js @@ -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();