mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-01-18 02:39:49 +00:00
Update tests that assume saveToken returned the token as the second
parameter
This commit is contained in:
parent
b0dde8104f
commit
8143fa3ab3
@ -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) ->
|
||||
|
@ -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) ->
|
||||
|
Loading…
Reference in New Issue
Block a user