diff --git a/package.json b/package.json index a46a8463..bbbd19a5 100644 --- a/package.json +++ b/package.json @@ -63,7 +63,7 @@ "fix": "eslint --fix '**/*.js'" }, "dependencies": { - "@google-cloud/common": "^0.17.0", + "@google-cloud/common": "^0.25.0", "@google-cloud/paginator": "^0.1.1", "@google-cloud/projectify": "^0.3.0", "@google-cloud/promisify": "^0.3.1", diff --git a/src/index.js b/src/index.js index 8c0952ba..dec098e0 100644 --- a/src/index.js +++ b/src/index.js @@ -81,7 +81,7 @@ const Image = require('./image.js'); * }); */ function Compute(options) { - options = common.util.normalizeArguments(this, options); + options = options || {}; const config = { baseUrl: 'https://www.googleapis.com/compute/v1', diff --git a/test/index.js b/test/index.js index cd45b97a..38b7a8c5 100644 --- a/test/index.js +++ b/test/index.js @@ -207,20 +207,6 @@ describe('Compute', function() { assert(compute instanceof Compute); }); - it('should normalize the arguments', function() { - let normalizeArgumentsCalled = false; - const options = {}; - - fakeUtil.normalizeArguments = function(context, options_) { - normalizeArgumentsCalled = true; - assert.strictEqual(options_, options); - return options_; - }; - - new Compute(options); - assert.strictEqual(normalizeArgumentsCalled, true); - }); - it('should inherit from Service', function() { assert(compute instanceof Service);