Skip to content

Commit

Permalink
fix: regen protos and tests, formatting (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-fenster authored May 6, 2020
1 parent d15d314 commit 4a39680
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 29 deletions.
14 changes: 3 additions & 11 deletions packages/google-monitoring-dashboard/synth.metadata
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,15 @@
{
"git": {
"name": ".",
"remote": "https://github.com/googleapis/nodejs-monitoring-dashboards.git",
"sha": "acb85cfec9a2c5dff03a425e87723a9ef09a9db3"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "42ee97c1b93a0e3759bbba3013da309f670a90ab",
"internalRef": "307114445"
"remote": "git@github.com:googleapis/nodejs-monitoring-dashboards.git",
"sha": "21a5fc3779c513316cbc648f7aebfbfed41f2022"
}
},
{
"git": {
"name": "synthtool",
"remote": "https://github.com/googleapis/synthtool.git",
"sha": "19465d3ec5e5acdb01521d8f3bddd311bcbee28d"
"sha": "ab883569eb0257bbf16a6d825fd018b3adde3912"
}
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -299,9 +299,7 @@ describe('v1.DashboardsServiceClient', () => {
undefined,
expectedError
);
await assert.rejects(async () => {
await client.createDashboard(request);
}, expectedError);
await assert.rejects(client.createDashboard(request), expectedError);
assert(
(client.innerApiCalls.createDashboard as SinonStub)
.getCall(0)
Expand Down Expand Up @@ -413,9 +411,7 @@ describe('v1.DashboardsServiceClient', () => {
undefined,
expectedError
);
await assert.rejects(async () => {
await client.getDashboard(request);
}, expectedError);
await assert.rejects(client.getDashboard(request), expectedError);
assert(
(client.innerApiCalls.getDashboard as SinonStub)
.getCall(0)
Expand Down Expand Up @@ -527,9 +523,7 @@ describe('v1.DashboardsServiceClient', () => {
undefined,
expectedError
);
await assert.rejects(async () => {
await client.deleteDashboard(request);
}, expectedError);
await assert.rejects(client.deleteDashboard(request), expectedError);
assert(
(client.innerApiCalls.deleteDashboard as SinonStub)
.getCall(0)
Expand Down Expand Up @@ -644,9 +638,7 @@ describe('v1.DashboardsServiceClient', () => {
undefined,
expectedError
);
await assert.rejects(async () => {
await client.updateDashboard(request);
}, expectedError);
await assert.rejects(client.updateDashboard(request), expectedError);
assert(
(client.innerApiCalls.updateDashboard as SinonStub)
.getCall(0)
Expand Down Expand Up @@ -774,9 +766,7 @@ describe('v1.DashboardsServiceClient', () => {
undefined,
expectedError
);
await assert.rejects(async () => {
await client.listDashboards(request);
}, expectedError);
await assert.rejects(client.listDashboards(request), expectedError);
assert(
(client.innerApiCalls.listDashboards as SinonStub)
.getCall(0)
Expand Down Expand Up @@ -873,9 +863,7 @@ describe('v1.DashboardsServiceClient', () => {
reject(err);
});
});
await assert.rejects(async () => {
await promise;
}, expectedError);
await assert.rejects(promise, expectedError);
assert(
(client.descriptors.page.listDashboards.createStream as SinonStub)
.getCall(0)
Expand Down

0 comments on commit 4a39680

Please sign in to comment.