Skip to content

Commit

Permalink
eslint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jupe committed Oct 20, 2018
1 parent 0a597d2 commit 541679b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/authentication.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class Authentication {
* @return {Promise.<string>} - return a token
*/
login(email, password) {
invariant(!_.isString(this._transport.token), 'is logged out alread!');
invariant(!_.isString(this._transport.token), 'is logged out already!');
invariant(_.isString(email), 'email should be string');
invariant(_.isString(password), 'password should be string');
return this._transport
Expand All @@ -55,8 +55,8 @@ class Authentication {
* @param {string}service token service, default: Github
* @return {Promise<string>} - return token
*/
loginWithToken(token, service='github') {
invariant(!_.isString(this._transport.token), 'is logged out alread!');
loginWithToken(token, service = 'github') {
invariant(!_.isString(this._transport.token), 'is logged out already!');
invariant(_.isString(token), 'token should be string');
invariant(_.isString(service), 'service should be string');
return this._transport
Expand Down
1 change: 1 addition & 0 deletions test/api/authentication.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ describe('Authentication', function () {
});
});
});

describe('login with 3rd party access token', function () {

it('success', function (done) {
Expand Down

0 comments on commit 541679b

Please sign in to comment.