diff --git a/packages/google-cloud-datalabeling/test/gapic_data_labeling_service_v1beta1.ts b/packages/google-cloud-datalabeling/test/gapic_data_labeling_service_v1beta1.ts index cedd2755793..f97f9df5b35 100644 --- a/packages/google-cloud-datalabeling/test/gapic_data_labeling_service_v1beta1.ts +++ b/packages/google-cloud-datalabeling/test/gapic_data_labeling_service_v1beta1.ts @@ -374,7 +374,6 @@ describe('v1beta1.DataLabelingServiceClient', () => { new protos.google.cloud.datalabeling.v1beta1.CreateDatasetRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.createDataset(request), expectedError); @@ -505,7 +504,6 @@ describe('v1beta1.DataLabelingServiceClient', () => { new protos.google.cloud.datalabeling.v1beta1.GetDatasetRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getDataset(request), expectedError); @@ -636,7 +634,6 @@ describe('v1beta1.DataLabelingServiceClient', () => { new protos.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.deleteDataset(request), expectedError); @@ -767,7 +764,6 @@ describe('v1beta1.DataLabelingServiceClient', () => { new protos.google.cloud.datalabeling.v1beta1.GetDataItemRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getDataItem(request), expectedError); @@ -899,7 +895,6 @@ describe('v1beta1.DataLabelingServiceClient', () => { new protos.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getAnnotatedDataset(request), expectedError); @@ -1034,7 +1029,6 @@ describe('v1beta1.DataLabelingServiceClient', () => { new protos.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -1168,7 +1162,6 @@ describe('v1beta1.DataLabelingServiceClient', () => { new protos.google.cloud.datalabeling.v1beta1.GetExampleRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getExample(request), expectedError); @@ -1303,7 +1296,6 @@ describe('v1beta1.DataLabelingServiceClient', () => { new protos.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -1438,7 +1430,6 @@ describe('v1beta1.DataLabelingServiceClient', () => { new protos.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getAnnotationSpecSet(request), expectedError); @@ -1573,7 +1564,6 @@ describe('v1beta1.DataLabelingServiceClient', () => { new protos.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -1707,7 +1697,6 @@ describe('v1beta1.DataLabelingServiceClient', () => { new protos.google.cloud.datalabeling.v1beta1.GetInstructionRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getInstruction(request), expectedError); @@ -1838,7 +1827,6 @@ describe('v1beta1.DataLabelingServiceClient', () => { new protos.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.deleteInstruction(request), expectedError); @@ -1969,7 +1957,6 @@ describe('v1beta1.DataLabelingServiceClient', () => { new protos.google.cloud.datalabeling.v1beta1.GetEvaluationRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getEvaluation(request), expectedError); @@ -2101,7 +2088,6 @@ describe('v1beta1.DataLabelingServiceClient', () => { new protos.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.createEvaluationJob(request), expectedError); @@ -2237,7 +2223,6 @@ describe('v1beta1.DataLabelingServiceClient', () => { ); request.evaluationJob = {}; request.evaluationJob.name = ''; - const expectedHeaderRequestParams = 'evaluation_job.name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.updateEvaluationJob(request), expectedError); @@ -2368,7 +2353,6 @@ describe('v1beta1.DataLabelingServiceClient', () => { new protos.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getEvaluationJob(request), expectedError); @@ -2500,7 +2484,6 @@ describe('v1beta1.DataLabelingServiceClient', () => { new protos.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.pauseEvaluationJob(request), expectedError); @@ -2632,7 +2615,6 @@ describe('v1beta1.DataLabelingServiceClient', () => { new protos.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.resumeEvaluationJob(request), expectedError); @@ -2764,7 +2746,6 @@ describe('v1beta1.DataLabelingServiceClient', () => { new protos.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.deleteEvaluationJob(request), expectedError);