Skip to content

Commit

Permalink
add package.json to IAM
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenplusplus committed Sep 9, 2016
1 parent 2a13718 commit e2851fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/pubsub/src/iam.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ function IAM(pubsub, id) {
scopes: [
'https://www.googleapis.com/auth/pubsub',
'https://www.googleapis.com/auth/cloud-platform'
]
],
packageJson: require('../package.json')
};

this.id = id;
Expand Down
1 change: 1 addition & 0 deletions packages/pubsub/test/iam.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ describe('IAM', function() {
'https://www.googleapis.com/auth/pubsub',
'https://www.googleapis.com/auth/cloud-platform'
]);
assert.deepEqual(config.packageJson, require('../package.json'));

assert.strictEqual(options, PUBSUB.options);
});
Expand Down

0 comments on commit e2851fc

Please sign in to comment.