Update tests that assume saveToken returned the token as the second

parameter
This commit is contained in:
Juan Cruz Viotti 2014-11-14 15:34:14 -04:00
parent b0dde8104f
commit 8143fa3ab3
2 changed files with 3 additions and 5 deletions

View File

@ -37,8 +37,7 @@ describe 'Auth:', ->
expect(isLoggedIn).to.be.false
auth.login(johnDoeFixture.credentials, callback)
(authToken, callback) ->
expect(authToken).to.be.a.string
(callback) ->
auth.isLoggedIn (isLoggedIn) ->
return callback(null, isLoggedIn)
@ -100,8 +99,7 @@ describe 'Auth:', ->
expect(token).to.equal(johnDoeFixture.token)
auth.login(janeDoeFixture.credentials, callback)
(token, callback) ->
expect(token).to.be.a.string
(callback) ->
auth.getToken(callback)
(token, callback) ->

View File

@ -24,7 +24,7 @@ describe 'Token:', ->
expect(savedToken).to.equal(johnDoeFixture.token)
token.saveToken(janeDoeFixture.token, callback)
(savedToken, callback) ->
(callback) ->
token.getToken(callback)
(savedToken, callback) ->