Skip to content

Commit

Permalink
Update to work with new google-auth-library + fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Ace Nassri committed Jan 31, 2018
1 parent a0ccda3 commit 9eed552
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class Auth {
}

var createAuthClientPromise = (resolve, reject) => {
var googleAuthClient = this.googleAuthClient = new GoogleAuth();
var googleAuthClient = this.googleAuthClient = new GoogleAuth.GoogleAuth();

var config = this.config;
var keyFile = config.keyFilename || config.keyFile;
Expand Down
2 changes: 1 addition & 1 deletion test.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ describe('googleAutoAuth', function () {
var auth;

before(function () {
mockery.registerMock('google-auth-library', fakeGoogleAuthLibrary);
mockery.registerMock('google-auth-library', { GoogleAuth: fakeGoogleAuthLibrary });
mockery.registerMock('crypto', fakeCrypto);
mockery.registerMock('request', fakeRequest);
mockery.registerMock('gcp-metadata', fakeGcpMetadata);
Expand Down

0 comments on commit 9eed552

Please sign in to comment.