Skip to content

Commit e42c46b

Browse files
chore: update v2.14.2 gapic-generator-typescript (#769)
- [ ] Regenerate this pull request now. Committer: @summer-ji-eng PiperOrigin-RevId: 434859890 Source-Link: googleapis/googleapis@bc2432d Source-Link: googleapis/googleapis-gen@930b673 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOTMwYjY3MzEwM2U5MjUyM2Y4Y2ZlZDM4ZGVjZDdkM2FmYWU4ZWJlNyJ9
1 parent 0e9364e commit e42c46b

2 files changed

Lines changed: 0 additions & 10 deletions

File tree

packages/google-cloud-translate/test/gapic_translation_service_v3.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,6 @@ describe('v3.TranslationServiceClient', () => {
362362
new protos.google.cloud.translation.v3.TranslateTextRequest()
363363
);
364364
request.parent = '';
365-
const expectedHeaderRequestParams = 'parent=';
366365
const expectedError = new Error('The client has already been closed.');
367366
client.close();
368367
await assert.rejects(client.translateText(request), expectedError);
@@ -489,7 +488,6 @@ describe('v3.TranslationServiceClient', () => {
489488
new protos.google.cloud.translation.v3.DetectLanguageRequest()
490489
);
491490
request.parent = '';
492-
const expectedHeaderRequestParams = 'parent=';
493491
const expectedError = new Error('The client has already been closed.');
494492
client.close();
495493
await assert.rejects(client.detectLanguage(request), expectedError);
@@ -620,7 +618,6 @@ describe('v3.TranslationServiceClient', () => {
620618
new protos.google.cloud.translation.v3.GetSupportedLanguagesRequest()
621619
);
622620
request.parent = '';
623-
const expectedHeaderRequestParams = 'parent=';
624621
const expectedError = new Error('The client has already been closed.');
625622
client.close();
626623
await assert.rejects(
@@ -750,7 +747,6 @@ describe('v3.TranslationServiceClient', () => {
750747
new protos.google.cloud.translation.v3.TranslateDocumentRequest()
751748
);
752749
request.parent = '';
753-
const expectedHeaderRequestParams = 'parent=';
754750
const expectedError = new Error('The client has already been closed.');
755751
client.close();
756752
await assert.rejects(client.translateDocument(request), expectedError);
@@ -877,7 +873,6 @@ describe('v3.TranslationServiceClient', () => {
877873
new protos.google.cloud.translation.v3.GetGlossaryRequest()
878874
);
879875
request.name = '';
880-
const expectedHeaderRequestParams = 'name=';
881876
const expectedError = new Error('The client has already been closed.');
882877
client.close();
883878
await assert.rejects(client.getGlossary(request), expectedError);

packages/google-cloud-translate/test/gapic_translation_service_v3beta1.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,6 @@ describe('v3beta1.TranslationServiceClient', () => {
373373
new protos.google.cloud.translation.v3beta1.TranslateTextRequest()
374374
);
375375
request.parent = '';
376-
const expectedHeaderRequestParams = 'parent=';
377376
const expectedError = new Error('The client has already been closed.');
378377
client.close();
379378
await assert.rejects(client.translateText(request), expectedError);
@@ -504,7 +503,6 @@ describe('v3beta1.TranslationServiceClient', () => {
504503
new protos.google.cloud.translation.v3beta1.DetectLanguageRequest()
505504
);
506505
request.parent = '';
507-
const expectedHeaderRequestParams = 'parent=';
508506
const expectedError = new Error('The client has already been closed.');
509507
client.close();
510508
await assert.rejects(client.detectLanguage(request), expectedError);
@@ -639,7 +637,6 @@ describe('v3beta1.TranslationServiceClient', () => {
639637
new protos.google.cloud.translation.v3beta1.GetSupportedLanguagesRequest()
640638
);
641639
request.parent = '';
642-
const expectedHeaderRequestParams = 'parent=';
643640
const expectedError = new Error('The client has already been closed.');
644641
client.close();
645642
await assert.rejects(
@@ -773,7 +770,6 @@ describe('v3beta1.TranslationServiceClient', () => {
773770
new protos.google.cloud.translation.v3beta1.TranslateDocumentRequest()
774771
);
775772
request.parent = '';
776-
const expectedHeaderRequestParams = 'parent=';
777773
const expectedError = new Error('The client has already been closed.');
778774
client.close();
779775
await assert.rejects(client.translateDocument(request), expectedError);
@@ -904,7 +900,6 @@ describe('v3beta1.TranslationServiceClient', () => {
904900
new protos.google.cloud.translation.v3beta1.GetGlossaryRequest()
905901
);
906902
request.name = '';
907-
const expectedHeaderRequestParams = 'name=';
908903
const expectedError = new Error('The client has already been closed.');
909904
client.close();
910905
await assert.rejects(client.getGlossary(request), expectedError);

0 commit comments

Comments
 (0)