Skip to content

Commit c04777d

Browse files
yoshi-automationBenjamin E. Coe
authored andcommitted
fix: default options to empty object
1 parent 0f75d38 commit c04777d

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

src/v1/datastore_client.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ class DatastoreClient {
6060
* API remote host.
6161
*/
6262
constructor(opts) {
63+
opts = opts || {};
6364
this._descriptors = {};
6465

6566
const servicePath =

synth.metadata

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
{
2-
"updateTime": "2019-06-04T19:30:55.849433Z",
2+
"updateTime": "2019-06-05T11:08:22.444988Z",
33
"sources": [
44
{
55
"generator": {
66
"name": "artman",
7-
"version": "0.23.0",
8-
"dockerImage": "googleapis/artman@sha256:846102ebf7ea2239162deea69f64940443b4147f7c2e68d64b332416f74211ba"
7+
"version": "0.23.1",
8+
"dockerImage": "googleapis/artman@sha256:9d5cae1454da64ac3a87028f8ef486b04889e351c83bb95e83b8fab3959faed0"
99
}
1010
},
1111
{
1212
"git": {
1313
"name": "googleapis",
1414
"remote": "https://github.com/googleapis/googleapis.git",
15-
"sha": "0026f4b890ed9e2388fb0573c0727defa6f5b82e",
16-
"internalRef": "251265049"
15+
"sha": "4f3516a6f96dac182973a3573ff5117e8e4f76c7",
16+
"internalRef": "251559960"
1717
}
1818
},
1919
{

test/gapic-v1.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ describe('DatastoreClient', () => {
3939
assert(typeof port === 'number');
4040
});
4141

42+
it('should create a client with no options', () => {
43+
const client = new datastoreModule.v1.DatastoreClient();
44+
assert(client);
45+
});
46+
4247
describe('lookup', () => {
4348
it('invokes lookup without error', done => {
4449
const client = new datastoreModule.v1.DatastoreClient({

0 commit comments

Comments
 (0)