From e42c46b3bc2dd50eaef10efd68a72f2079ff3a99 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 16 Mar 2022 21:32:34 +0000 Subject: [PATCH] chore: update v2.14.2 gapic-generator-typescript (#769) - [ ] Regenerate this pull request now. Committer: @summer-ji-eng PiperOrigin-RevId: 434859890 Source-Link: https://github.com/googleapis/googleapis/commit/bc2432d50cba657e95212122e3fa112591b5bec2 Source-Link: https://github.com/googleapis/googleapis-gen/commit/930b673103e92523f8cfed38decd7d3afae8ebe7 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOTMwYjY3MzEwM2U5MjUyM2Y4Y2ZlZDM4ZGVjZDdkM2FmYWU4ZWJlNyJ9 --- .../test/gapic_translation_service_v3.ts | 5 ----- .../test/gapic_translation_service_v3beta1.ts | 5 ----- 2 files changed, 10 deletions(-) diff --git a/packages/google-cloud-translate/test/gapic_translation_service_v3.ts b/packages/google-cloud-translate/test/gapic_translation_service_v3.ts index 94b9f7324aa..07fe1fafb14 100644 --- a/packages/google-cloud-translate/test/gapic_translation_service_v3.ts +++ b/packages/google-cloud-translate/test/gapic_translation_service_v3.ts @@ -362,7 +362,6 @@ describe('v3.TranslationServiceClient', () => { new protos.google.cloud.translation.v3.TranslateTextRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.translateText(request), expectedError); @@ -489,7 +488,6 @@ describe('v3.TranslationServiceClient', () => { new protos.google.cloud.translation.v3.DetectLanguageRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.detectLanguage(request), expectedError); @@ -620,7 +618,6 @@ describe('v3.TranslationServiceClient', () => { new protos.google.cloud.translation.v3.GetSupportedLanguagesRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -750,7 +747,6 @@ describe('v3.TranslationServiceClient', () => { new protos.google.cloud.translation.v3.TranslateDocumentRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.translateDocument(request), expectedError); @@ -877,7 +873,6 @@ describe('v3.TranslationServiceClient', () => { new protos.google.cloud.translation.v3.GetGlossaryRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getGlossary(request), expectedError); diff --git a/packages/google-cloud-translate/test/gapic_translation_service_v3beta1.ts b/packages/google-cloud-translate/test/gapic_translation_service_v3beta1.ts index fd56884a5c8..e5f741879aa 100644 --- a/packages/google-cloud-translate/test/gapic_translation_service_v3beta1.ts +++ b/packages/google-cloud-translate/test/gapic_translation_service_v3beta1.ts @@ -373,7 +373,6 @@ describe('v3beta1.TranslationServiceClient', () => { new protos.google.cloud.translation.v3beta1.TranslateTextRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.translateText(request), expectedError); @@ -504,7 +503,6 @@ describe('v3beta1.TranslationServiceClient', () => { new protos.google.cloud.translation.v3beta1.DetectLanguageRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.detectLanguage(request), expectedError); @@ -639,7 +637,6 @@ describe('v3beta1.TranslationServiceClient', () => { new protos.google.cloud.translation.v3beta1.GetSupportedLanguagesRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -773,7 +770,6 @@ describe('v3beta1.TranslationServiceClient', () => { new protos.google.cloud.translation.v3beta1.TranslateDocumentRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.translateDocument(request), expectedError); @@ -904,7 +900,6 @@ describe('v3beta1.TranslationServiceClient', () => { new protos.google.cloud.translation.v3beta1.GetGlossaryRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getGlossary(request), expectedError);