diff --git a/src/v1/datastore_client.js b/src/v1/datastore_client.js index cf13ffb9c..e68f873e3 100644 --- a/src/v1/datastore_client.js +++ b/src/v1/datastore_client.js @@ -60,6 +60,7 @@ class DatastoreClient { * API remote host. */ constructor(opts) { + opts = opts || {}; this._descriptors = {}; const servicePath = diff --git a/synth.metadata b/synth.metadata index a3ea73a3c..bf505af74 100644 --- a/synth.metadata +++ b/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-06-04T19:30:55.849433Z", + "updateTime": "2019-06-05T11:08:22.444988Z", "sources": [ { "generator": { "name": "artman", - "version": "0.23.0", - "dockerImage": "googleapis/artman@sha256:846102ebf7ea2239162deea69f64940443b4147f7c2e68d64b332416f74211ba" + "version": "0.23.1", + "dockerImage": "googleapis/artman@sha256:9d5cae1454da64ac3a87028f8ef486b04889e351c83bb95e83b8fab3959faed0" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "0026f4b890ed9e2388fb0573c0727defa6f5b82e", - "internalRef": "251265049" + "sha": "4f3516a6f96dac182973a3573ff5117e8e4f76c7", + "internalRef": "251559960" } }, { diff --git a/test/gapic-v1.js b/test/gapic-v1.js index f1df1c551..000067e40 100644 --- a/test/gapic-v1.js +++ b/test/gapic-v1.js @@ -39,6 +39,11 @@ describe('DatastoreClient', () => { assert(typeof port === 'number'); }); + it('should create a client with no options', () => { + const client = new datastoreModule.v1.DatastoreClient(); + assert(client); + }); + describe('lookup', () => { it('invokes lookup without error', done => { const client = new datastoreModule.v1.DatastoreClient({