Skip to content

Commit

Permalink
fix: remove extra space in template (#396)
Browse files Browse the repository at this point in the history
* remove extra space

* remove iam-service test
  • Loading branch information
xiaozhenliu-gg5 committed Apr 8, 2020
1 parent 94de62f commit 444c109
Show file tree
Hide file tree
Showing 25 changed files with 619 additions and 619 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ describe('v1beta1.BigQueryStorageClient', () => {
credentials: { client_email: 'bogus', private_key: 'bogus' },
projectId: 'bogus',
});
client.auth.getProjectId = sinon.stub().resolves(fakeProjectId);
client.auth.getProjectId = sinon.stub().resolves(fakeProjectId);
const result = await client.getProjectId();
assert.strictEqual(result, fakeProjectId);
assert((client.auth.getProjectId as SinonStub).calledWithExactly());
Expand Down Expand Up @@ -571,9 +571,9 @@ describe('v1beta1.BigQueryStorageClient', () => {
projectId: 'bogus',
});
client.initialize();
client.pathTemplates.readSessionPathTemplate.render =
client.pathTemplates.readSessionPathTemplate.render =
sinon.stub().returns(fakePath);
client.pathTemplates.readSessionPathTemplate.match =
client.pathTemplates.readSessionPathTemplate.match =
sinon.stub().returns(expectedParameters);

it('readSessionPath', () => {
Expand Down Expand Up @@ -617,9 +617,9 @@ describe('v1beta1.BigQueryStorageClient', () => {
projectId: 'bogus',
});
client.initialize();
client.pathTemplates.streamPathTemplate.render =
client.pathTemplates.streamPathTemplate.render =
sinon.stub().returns(fakePath);
client.pathTemplates.streamPathTemplate.match =
client.pathTemplates.streamPathTemplate.match =
sinon.stub().returns(expectedParameters);

it('streamPath', () => {
Expand Down
32 changes: 16 additions & 16 deletions baselines/disable-packing-test/test/gapic_echo_v1beta1.ts.baseline
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ describe('v1beta1.EchoClient', () => {
credentials: { client_email: 'bogus', private_key: 'bogus' },
projectId: 'bogus',
});
client.auth.getProjectId = sinon.stub().resolves(fakeProjectId);
client.auth.getProjectId = sinon.stub().resolves(fakeProjectId);
const result = await client.getProjectId();
assert.strictEqual(result, fakeProjectId);
assert((client.auth.getProjectId as SinonStub).calledWithExactly());
Expand Down Expand Up @@ -365,7 +365,7 @@ describe('v1beta1.EchoClient', () => {
const promise = new Promise((resolve, reject) => {
client.wait(
request,
(err?: Error|null,
(err?: Error|null,
result?: LROperation<protos.google.showcase.v1beta1.IWaitResponse, protos.google.showcase.v1beta1.IWaitMetadata>|null
) => {
if (err) {
Expand Down Expand Up @@ -763,9 +763,9 @@ describe('v1beta1.EchoClient', () => {
projectId: 'bogus',
});
client.initialize();
client.pathTemplates.blueprintPathTemplate.render =
client.pathTemplates.blueprintPathTemplate.render =
sinon.stub().returns(fakePath);
client.pathTemplates.blueprintPathTemplate.match =
client.pathTemplates.blueprintPathTemplate.match =
sinon.stub().returns(expectedParameters);

it('blueprintPath', () => {
Expand Down Expand Up @@ -807,9 +807,9 @@ describe('v1beta1.EchoClient', () => {
projectId: 'bogus',
});
client.initialize();
client.pathTemplates.roomPathTemplate.render =
client.pathTemplates.roomPathTemplate.render =
sinon.stub().returns(fakePath);
client.pathTemplates.roomPathTemplate.match =
client.pathTemplates.roomPathTemplate.match =
sinon.stub().returns(expectedParameters);

it('roomPath', () => {
Expand Down Expand Up @@ -838,9 +838,9 @@ describe('v1beta1.EchoClient', () => {
projectId: 'bogus',
});
client.initialize();
client.pathTemplates.roomIdBlurbIdPathTemplate.render =
client.pathTemplates.roomIdBlurbIdPathTemplate.render =
sinon.stub().returns(fakePath);
client.pathTemplates.roomIdBlurbIdPathTemplate.match =
client.pathTemplates.roomIdBlurbIdPathTemplate.match =
sinon.stub().returns(expectedParameters);

it('roomIdBlurbIdPath', () => {
Expand Down Expand Up @@ -875,9 +875,9 @@ describe('v1beta1.EchoClient', () => {
projectId: 'bogus',
});
client.initialize();
client.pathTemplates.sessionPathTemplate.render =
client.pathTemplates.sessionPathTemplate.render =
sinon.stub().returns(fakePath);
client.pathTemplates.sessionPathTemplate.match =
client.pathTemplates.sessionPathTemplate.match =
sinon.stub().returns(expectedParameters);

it('sessionPath', () => {
Expand Down Expand Up @@ -906,9 +906,9 @@ describe('v1beta1.EchoClient', () => {
projectId: 'bogus',
});
client.initialize();
client.pathTemplates.testPathTemplate.render =
client.pathTemplates.testPathTemplate.render =
sinon.stub().returns(fakePath);
client.pathTemplates.testPathTemplate.match =
client.pathTemplates.testPathTemplate.match =
sinon.stub().returns(expectedParameters);

it('testPath', () => {
Expand Down Expand Up @@ -943,9 +943,9 @@ describe('v1beta1.EchoClient', () => {
projectId: 'bogus',
});
client.initialize();
client.pathTemplates.userPathTemplate.render =
client.pathTemplates.userPathTemplate.render =
sinon.stub().returns(fakePath);
client.pathTemplates.userPathTemplate.match =
client.pathTemplates.userPathTemplate.match =
sinon.stub().returns(expectedParameters);

it('userPath', () => {
Expand Down Expand Up @@ -974,9 +974,9 @@ describe('v1beta1.EchoClient', () => {
projectId: 'bogus',
});
client.initialize();
client.pathTemplates.userIdProfileBlurbIdPathTemplate.render =
client.pathTemplates.userIdProfileBlurbIdPathTemplate.render =
sinon.stub().returns(fakePath);
client.pathTemplates.userIdProfileBlurbIdPathTemplate.match =
client.pathTemplates.userIdProfileBlurbIdPathTemplate.match =
sinon.stub().returns(expectedParameters);

it('userIdProfileBlurbIdPath', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ describe('v1beta1.IdentityClient', () => {
credentials: { client_email: 'bogus', private_key: 'bogus' },
projectId: 'bogus',
});
client.auth.getProjectId = sinon.stub().resolves(fakeProjectId);
client.auth.getProjectId = sinon.stub().resolves(fakeProjectId);
const result = await client.getProjectId();
assert.strictEqual(result, fakeProjectId);
assert((client.auth.getProjectId as SinonStub).calledWithExactly());
Expand Down Expand Up @@ -664,9 +664,9 @@ describe('v1beta1.IdentityClient', () => {
projectId: 'bogus',
});
client.initialize();
client.pathTemplates.blueprintPathTemplate.render =
client.pathTemplates.blueprintPathTemplate.render =
sinon.stub().returns(fakePath);
client.pathTemplates.blueprintPathTemplate.match =
client.pathTemplates.blueprintPathTemplate.match =
sinon.stub().returns(expectedParameters);

it('blueprintPath', () => {
Expand Down Expand Up @@ -708,9 +708,9 @@ describe('v1beta1.IdentityClient', () => {
projectId: 'bogus',
});
client.initialize();
client.pathTemplates.roomPathTemplate.render =
client.pathTemplates.roomPathTemplate.render =
sinon.stub().returns(fakePath);
client.pathTemplates.roomPathTemplate.match =
client.pathTemplates.roomPathTemplate.match =
sinon.stub().returns(expectedParameters);

it('roomPath', () => {
Expand Down Expand Up @@ -739,9 +739,9 @@ describe('v1beta1.IdentityClient', () => {
projectId: 'bogus',
});
client.initialize();
client.pathTemplates.roomIdBlurbIdPathTemplate.render =
client.pathTemplates.roomIdBlurbIdPathTemplate.render =
sinon.stub().returns(fakePath);
client.pathTemplates.roomIdBlurbIdPathTemplate.match =
client.pathTemplates.roomIdBlurbIdPathTemplate.match =
sinon.stub().returns(expectedParameters);

it('roomIdBlurbIdPath', () => {
Expand Down Expand Up @@ -776,9 +776,9 @@ describe('v1beta1.IdentityClient', () => {
projectId: 'bogus',
});
client.initialize();
client.pathTemplates.sessionPathTemplate.render =
client.pathTemplates.sessionPathTemplate.render =
sinon.stub().returns(fakePath);
client.pathTemplates.sessionPathTemplate.match =
client.pathTemplates.sessionPathTemplate.match =
sinon.stub().returns(expectedParameters);

it('sessionPath', () => {
Expand Down Expand Up @@ -807,9 +807,9 @@ describe('v1beta1.IdentityClient', () => {
projectId: 'bogus',
});
client.initialize();
client.pathTemplates.testPathTemplate.render =
client.pathTemplates.testPathTemplate.render =
sinon.stub().returns(fakePath);
client.pathTemplates.testPathTemplate.match =
client.pathTemplates.testPathTemplate.match =
sinon.stub().returns(expectedParameters);

it('testPath', () => {
Expand Down Expand Up @@ -844,9 +844,9 @@ describe('v1beta1.IdentityClient', () => {
projectId: 'bogus',
});
client.initialize();
client.pathTemplates.userPathTemplate.render =
client.pathTemplates.userPathTemplate.render =
sinon.stub().returns(fakePath);
client.pathTemplates.userPathTemplate.match =
client.pathTemplates.userPathTemplate.match =
sinon.stub().returns(expectedParameters);

it('userPath', () => {
Expand Down Expand Up @@ -875,9 +875,9 @@ describe('v1beta1.IdentityClient', () => {
projectId: 'bogus',
});
client.initialize();
client.pathTemplates.userIdProfileBlurbIdPathTemplate.render =
client.pathTemplates.userIdProfileBlurbIdPathTemplate.render =
sinon.stub().returns(fakePath);
client.pathTemplates.userIdProfileBlurbIdPathTemplate.match =
client.pathTemplates.userIdProfileBlurbIdPathTemplate.match =
sinon.stub().returns(expectedParameters);

it('userIdProfileBlurbIdPath', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ describe('v1beta1.MessagingClient', () => {
credentials: { client_email: 'bogus', private_key: 'bogus' },
projectId: 'bogus',
});
client.auth.getProjectId = sinon.stub().resolves(fakeProjectId);
client.auth.getProjectId = sinon.stub().resolves(fakeProjectId);
const result = await client.getProjectId();
assert.strictEqual(result, fakeProjectId);
assert((client.auth.getProjectId as SinonStub).calledWithExactly());
Expand Down Expand Up @@ -915,7 +915,7 @@ describe('v1beta1.MessagingClient', () => {
const promise = new Promise((resolve, reject) => {
client.searchBlurbs(
request,
(err?: Error|null,
(err?: Error|null,
result?: LROperation<protos.google.showcase.v1beta1.ISearchBlurbsResponse, protos.google.showcase.v1beta1.ISearchBlurbsMetadata>|null
) => {
if (err) {
Expand Down Expand Up @@ -1567,9 +1567,9 @@ describe('v1beta1.MessagingClient', () => {
projectId: 'bogus',
});
client.initialize();
client.pathTemplates.blueprintPathTemplate.render =
client.pathTemplates.blueprintPathTemplate.render =
sinon.stub().returns(fakePath);
client.pathTemplates.blueprintPathTemplate.match =
client.pathTemplates.blueprintPathTemplate.match =
sinon.stub().returns(expectedParameters);

it('blueprintPath', () => {
Expand Down Expand Up @@ -1611,9 +1611,9 @@ describe('v1beta1.MessagingClient', () => {
projectId: 'bogus',
});
client.initialize();
client.pathTemplates.roomPathTemplate.render =
client.pathTemplates.roomPathTemplate.render =
sinon.stub().returns(fakePath);
client.pathTemplates.roomPathTemplate.match =
client.pathTemplates.roomPathTemplate.match =
sinon.stub().returns(expectedParameters);

it('roomPath', () => {
Expand Down Expand Up @@ -1642,9 +1642,9 @@ describe('v1beta1.MessagingClient', () => {
projectId: 'bogus',
});
client.initialize();
client.pathTemplates.roomIdBlurbIdPathTemplate.render =
client.pathTemplates.roomIdBlurbIdPathTemplate.render =
sinon.stub().returns(fakePath);
client.pathTemplates.roomIdBlurbIdPathTemplate.match =
client.pathTemplates.roomIdBlurbIdPathTemplate.match =
sinon.stub().returns(expectedParameters);

it('roomIdBlurbIdPath', () => {
Expand Down Expand Up @@ -1679,9 +1679,9 @@ describe('v1beta1.MessagingClient', () => {
projectId: 'bogus',
});
client.initialize();
client.pathTemplates.sessionPathTemplate.render =
client.pathTemplates.sessionPathTemplate.render =
sinon.stub().returns(fakePath);
client.pathTemplates.sessionPathTemplate.match =
client.pathTemplates.sessionPathTemplate.match =
sinon.stub().returns(expectedParameters);

it('sessionPath', () => {
Expand Down Expand Up @@ -1710,9 +1710,9 @@ describe('v1beta1.MessagingClient', () => {
projectId: 'bogus',
});
client.initialize();
client.pathTemplates.testPathTemplate.render =
client.pathTemplates.testPathTemplate.render =
sinon.stub().returns(fakePath);
client.pathTemplates.testPathTemplate.match =
client.pathTemplates.testPathTemplate.match =
sinon.stub().returns(expectedParameters);

it('testPath', () => {
Expand Down Expand Up @@ -1747,9 +1747,9 @@ describe('v1beta1.MessagingClient', () => {
projectId: 'bogus',
});
client.initialize();
client.pathTemplates.userPathTemplate.render =
client.pathTemplates.userPathTemplate.render =
sinon.stub().returns(fakePath);
client.pathTemplates.userPathTemplate.match =
client.pathTemplates.userPathTemplate.match =
sinon.stub().returns(expectedParameters);

it('userPath', () => {
Expand Down Expand Up @@ -1778,9 +1778,9 @@ describe('v1beta1.MessagingClient', () => {
projectId: 'bogus',
});
client.initialize();
client.pathTemplates.userIdProfileBlurbIdPathTemplate.render =
client.pathTemplates.userIdProfileBlurbIdPathTemplate.render =
sinon.stub().returns(fakePath);
client.pathTemplates.userIdProfileBlurbIdPathTemplate.match =
client.pathTemplates.userIdProfileBlurbIdPathTemplate.match =
sinon.stub().returns(expectedParameters);

it('userIdProfileBlurbIdPath', () => {
Expand Down
Loading

0 comments on commit 444c109

Please sign in to comment.