Skip to content

Commit

Permalink
chore: lint errors fix (#2064)
Browse files Browse the repository at this point in the history
This PR is a fix of lint failures in presubmits.
  • Loading branch information
alkatrivedi authored Jun 20, 2024
1 parent 2ac10a0 commit 47f8928
Show file tree
Hide file tree
Showing 7 changed files with 88 additions and 88 deletions.
2 changes: 1 addition & 1 deletion samples/proto-query-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

'use strict';

// eslint-disable-next-line node/no-unpublished-require
// eslint-disable-next-line n/no-unpublished-require
const singer = require('./resource/singer.js');
const music = singer.examples.spanner.music;

Expand Down
2 changes: 1 addition & 1 deletion samples/proto-update-data-dml.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

'use strict';

// eslint-disable-next-line node/no-unpublished-require
// eslint-disable-next-line n/no-unpublished-require
const singer = require('./resource/singer.js');
const music = singer.examples.spanner.music;

Expand Down
2 changes: 1 addition & 1 deletion samples/proto-update-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

'use strict';

// eslint-disable-next-line node/no-unpublished-require
// eslint-disable-next-line n/no-unpublished-require
const singer = require('./resource/singer.js');
const music = singer.examples.spanner.music;

Expand Down
96 changes: 48 additions & 48 deletions test/gapic_database_admin_v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2850,9 +2850,9 @@ describe('v1.DatabaseAdminClient', () => {
assert(
(client.descriptors.page.listDatabases.createStream as SinonStub)
.getCall(0)
.args[2].otherArgs.headers['x-goog-request-params'].includes(
expectedHeaderRequestParams
)
.args[2].otherArgs.headers[
'x-goog-request-params'
].includes(expectedHeaderRequestParams)
);
});

Expand Down Expand Up @@ -2900,9 +2900,9 @@ describe('v1.DatabaseAdminClient', () => {
assert(
(client.descriptors.page.listDatabases.createStream as SinonStub)
.getCall(0)
.args[2].otherArgs.headers['x-goog-request-params'].includes(
expectedHeaderRequestParams
)
.args[2].otherArgs.headers[
'x-goog-request-params'
].includes(expectedHeaderRequestParams)
);
});

Expand Down Expand Up @@ -2949,9 +2949,9 @@ describe('v1.DatabaseAdminClient', () => {
assert(
(client.descriptors.page.listDatabases.asyncIterate as SinonStub)
.getCall(0)
.args[2].otherArgs.headers['x-goog-request-params'].includes(
expectedHeaderRequestParams
)
.args[2].otherArgs.headers[
'x-goog-request-params'
].includes(expectedHeaderRequestParams)
);
});

Expand Down Expand Up @@ -2990,9 +2990,9 @@ describe('v1.DatabaseAdminClient', () => {
assert(
(client.descriptors.page.listDatabases.asyncIterate as SinonStub)
.getCall(0)
.args[2].otherArgs.headers['x-goog-request-params'].includes(
expectedHeaderRequestParams
)
.args[2].otherArgs.headers[
'x-goog-request-params'
].includes(expectedHeaderRequestParams)
);
});
});
Expand Down Expand Up @@ -3177,9 +3177,9 @@ describe('v1.DatabaseAdminClient', () => {
assert(
(client.descriptors.page.listBackups.createStream as SinonStub)
.getCall(0)
.args[2].otherArgs.headers['x-goog-request-params'].includes(
expectedHeaderRequestParams
)
.args[2].otherArgs.headers[
'x-goog-request-params'
].includes(expectedHeaderRequestParams)
);
});

Expand Down Expand Up @@ -3228,9 +3228,9 @@ describe('v1.DatabaseAdminClient', () => {
assert(
(client.descriptors.page.listBackups.createStream as SinonStub)
.getCall(0)
.args[2].otherArgs.headers['x-goog-request-params'].includes(
expectedHeaderRequestParams
)
.args[2].otherArgs.headers[
'x-goog-request-params'
].includes(expectedHeaderRequestParams)
);
});

Expand Down Expand Up @@ -3277,9 +3277,9 @@ describe('v1.DatabaseAdminClient', () => {
assert(
(client.descriptors.page.listBackups.asyncIterate as SinonStub)
.getCall(0)
.args[2].otherArgs.headers['x-goog-request-params'].includes(
expectedHeaderRequestParams
)
.args[2].otherArgs.headers[
'x-goog-request-params'
].includes(expectedHeaderRequestParams)
);
});

Expand Down Expand Up @@ -3319,9 +3319,9 @@ describe('v1.DatabaseAdminClient', () => {
assert(
(client.descriptors.page.listBackups.asyncIterate as SinonStub)
.getCall(0)
.args[2].otherArgs.headers['x-goog-request-params'].includes(
expectedHeaderRequestParams
)
.args[2].otherArgs.headers[
'x-goog-request-params'
].includes(expectedHeaderRequestParams)
);
});
});
Expand Down Expand Up @@ -3805,9 +3805,9 @@ describe('v1.DatabaseAdminClient', () => {
assert(
(client.descriptors.page.listBackupOperations.createStream as SinonStub)
.getCall(0)
.args[2].otherArgs.headers['x-goog-request-params'].includes(
expectedHeaderRequestParams
)
.args[2].otherArgs.headers[
'x-goog-request-params'
].includes(expectedHeaderRequestParams)
);
});

Expand Down Expand Up @@ -3851,9 +3851,9 @@ describe('v1.DatabaseAdminClient', () => {
assert(
(client.descriptors.page.listBackupOperations.createStream as SinonStub)
.getCall(0)
.args[2].otherArgs.headers['x-goog-request-params'].includes(
expectedHeaderRequestParams
)
.args[2].otherArgs.headers[
'x-goog-request-params'
].includes(expectedHeaderRequestParams)
);
});

Expand Down Expand Up @@ -3894,9 +3894,9 @@ describe('v1.DatabaseAdminClient', () => {
assert(
(client.descriptors.page.listBackupOperations.asyncIterate as SinonStub)
.getCall(0)
.args[2].otherArgs.headers['x-goog-request-params'].includes(
expectedHeaderRequestParams
)
.args[2].otherArgs.headers[
'x-goog-request-params'
].includes(expectedHeaderRequestParams)
);
});

Expand Down Expand Up @@ -3934,9 +3934,9 @@ describe('v1.DatabaseAdminClient', () => {
assert(
(client.descriptors.page.listBackupOperations.asyncIterate as SinonStub)
.getCall(0)
.args[2].otherArgs.headers['x-goog-request-params'].includes(
expectedHeaderRequestParams
)
.args[2].otherArgs.headers[
'x-goog-request-params'
].includes(expectedHeaderRequestParams)
);
});
});
Expand Down Expand Up @@ -4124,9 +4124,9 @@ describe('v1.DatabaseAdminClient', () => {
assert(
(client.descriptors.page.listDatabaseRoles.createStream as SinonStub)
.getCall(0)
.args[2].otherArgs.headers['x-goog-request-params'].includes(
expectedHeaderRequestParams
)
.args[2].otherArgs.headers[
'x-goog-request-params'
].includes(expectedHeaderRequestParams)
);
});

Expand Down Expand Up @@ -4174,9 +4174,9 @@ describe('v1.DatabaseAdminClient', () => {
assert(
(client.descriptors.page.listDatabaseRoles.createStream as SinonStub)
.getCall(0)
.args[2].otherArgs.headers['x-goog-request-params'].includes(
expectedHeaderRequestParams
)
.args[2].otherArgs.headers[
'x-goog-request-params'
].includes(expectedHeaderRequestParams)
);
});

Expand Down Expand Up @@ -4224,9 +4224,9 @@ describe('v1.DatabaseAdminClient', () => {
assert(
(client.descriptors.page.listDatabaseRoles.asyncIterate as SinonStub)
.getCall(0)
.args[2].otherArgs.headers['x-goog-request-params'].includes(
expectedHeaderRequestParams
)
.args[2].otherArgs.headers[
'x-goog-request-params'
].includes(expectedHeaderRequestParams)
);
});

Expand Down Expand Up @@ -4265,9 +4265,9 @@ describe('v1.DatabaseAdminClient', () => {
assert(
(client.descriptors.page.listDatabaseRoles.asyncIterate as SinonStub)
.getCall(0)
.args[2].otherArgs.headers['x-goog-request-params'].includes(
expectedHeaderRequestParams
)
.args[2].otherArgs.headers[
'x-goog-request-params'
].includes(expectedHeaderRequestParams)
);
});
});
Expand Down
48 changes: 24 additions & 24 deletions test/gapic_instance_admin_v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2887,9 +2887,9 @@ describe('v1.InstanceAdminClient', () => {
assert(
(client.descriptors.page.listInstanceConfigs.createStream as SinonStub)
.getCall(0)
.args[2].otherArgs.headers['x-goog-request-params'].includes(
expectedHeaderRequestParams
)
.args[2].otherArgs.headers[
'x-goog-request-params'
].includes(expectedHeaderRequestParams)
);
});

Expand Down Expand Up @@ -2939,9 +2939,9 @@ describe('v1.InstanceAdminClient', () => {
assert(
(client.descriptors.page.listInstanceConfigs.createStream as SinonStub)
.getCall(0)
.args[2].otherArgs.headers['x-goog-request-params'].includes(
expectedHeaderRequestParams
)
.args[2].otherArgs.headers[
'x-goog-request-params'
].includes(expectedHeaderRequestParams)
);
});

Expand Down Expand Up @@ -2989,9 +2989,9 @@ describe('v1.InstanceAdminClient', () => {
assert(
(client.descriptors.page.listInstanceConfigs.asyncIterate as SinonStub)
.getCall(0)
.args[2].otherArgs.headers['x-goog-request-params'].includes(
expectedHeaderRequestParams
)
.args[2].otherArgs.headers[
'x-goog-request-params'
].includes(expectedHeaderRequestParams)
);
});

Expand Down Expand Up @@ -3030,9 +3030,9 @@ describe('v1.InstanceAdminClient', () => {
assert(
(client.descriptors.page.listInstanceConfigs.asyncIterate as SinonStub)
.getCall(0)
.args[2].otherArgs.headers['x-goog-request-params'].includes(
expectedHeaderRequestParams
)
.args[2].otherArgs.headers[
'x-goog-request-params'
].includes(expectedHeaderRequestParams)
);
});
});
Expand Down Expand Up @@ -3543,9 +3543,9 @@ describe('v1.InstanceAdminClient', () => {
assert(
(client.descriptors.page.listInstances.createStream as SinonStub)
.getCall(0)
.args[2].otherArgs.headers['x-goog-request-params'].includes(
expectedHeaderRequestParams
)
.args[2].otherArgs.headers[
'x-goog-request-params'
].includes(expectedHeaderRequestParams)
);
});

Expand Down Expand Up @@ -3593,9 +3593,9 @@ describe('v1.InstanceAdminClient', () => {
assert(
(client.descriptors.page.listInstances.createStream as SinonStub)
.getCall(0)
.args[2].otherArgs.headers['x-goog-request-params'].includes(
expectedHeaderRequestParams
)
.args[2].otherArgs.headers[
'x-goog-request-params'
].includes(expectedHeaderRequestParams)
);
});

Expand Down Expand Up @@ -3642,9 +3642,9 @@ describe('v1.InstanceAdminClient', () => {
assert(
(client.descriptors.page.listInstances.asyncIterate as SinonStub)
.getCall(0)
.args[2].otherArgs.headers['x-goog-request-params'].includes(
expectedHeaderRequestParams
)
.args[2].otherArgs.headers[
'x-goog-request-params'
].includes(expectedHeaderRequestParams)
);
});

Expand Down Expand Up @@ -3683,9 +3683,9 @@ describe('v1.InstanceAdminClient', () => {
assert(
(client.descriptors.page.listInstances.asyncIterate as SinonStub)
.getCall(0)
.args[2].otherArgs.headers['x-goog-request-params'].includes(
expectedHeaderRequestParams
)
.args[2].otherArgs.headers[
'x-goog-request-params'
].includes(expectedHeaderRequestParams)
);
});
});
Expand Down
24 changes: 12 additions & 12 deletions test/gapic_spanner_v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2397,9 +2397,9 @@ describe('v1.SpannerClient', () => {
assert(
(client.descriptors.page.listSessions.createStream as SinonStub)
.getCall(0)
.args[2].otherArgs.headers['x-goog-request-params'].includes(
expectedHeaderRequestParams
)
.args[2].otherArgs.headers[
'x-goog-request-params'
].includes(expectedHeaderRequestParams)
);
});

Expand Down Expand Up @@ -2445,9 +2445,9 @@ describe('v1.SpannerClient', () => {
assert(
(client.descriptors.page.listSessions.createStream as SinonStub)
.getCall(0)
.args[2].otherArgs.headers['x-goog-request-params'].includes(
expectedHeaderRequestParams
)
.args[2].otherArgs.headers[
'x-goog-request-params'
].includes(expectedHeaderRequestParams)
);
});

Expand Down Expand Up @@ -2488,9 +2488,9 @@ describe('v1.SpannerClient', () => {
assert(
(client.descriptors.page.listSessions.asyncIterate as SinonStub)
.getCall(0)
.args[2].otherArgs.headers['x-goog-request-params'].includes(
expectedHeaderRequestParams
)
.args[2].otherArgs.headers[
'x-goog-request-params'
].includes(expectedHeaderRequestParams)
);
});

Expand Down Expand Up @@ -2528,9 +2528,9 @@ describe('v1.SpannerClient', () => {
assert(
(client.descriptors.page.listSessions.asyncIterate as SinonStub)
.getCall(0)
.args[2].otherArgs.headers['x-goog-request-params'].includes(
expectedHeaderRequestParams
)
.args[2].otherArgs.headers[
'x-goog-request-params'
].includes(expectedHeaderRequestParams)
);
});
});
Expand Down
2 changes: 1 addition & 1 deletion test/mockserver/mockspanner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import * as path from 'path';
import {google} from '../../protos/protos';
import {grpc, ServiceError} from 'google-gax';
import * as protoLoader from '@grpc/proto-loader';
// eslint-disable-next-line node/no-extraneous-import
// eslint-disable-next-line n/no-extraneous-import
import {Metadata} from '@grpc/grpc-js';
import {Transaction} from '../../src';
import protobuf = google.spanner.v1;
Expand Down

0 comments on commit 47f8928

Please sign in to comment.