Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Commit

Permalink
fixy
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBeckwith committed Oct 3, 2018
1 parent edbb31e commit 92ab011
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
14 changes: 0 additions & 14 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 92ab011

Please sign in to comment.