Skip to content

Commit

Permalink
chore: downgrade mocha and regenerate package-lock.json files (#332)
Browse files Browse the repository at this point in the history
* chore: downgrade mocha and regenerate package-lock.json files

* chore: npm run fix
  • Loading branch information
aabmass committed Sep 28, 2021
1 parent 82a6af1 commit b305dbd
Show file tree
Hide file tree
Showing 15 changed files with 11,569 additions and 8,108 deletions.
1,740 changes: 907 additions & 833 deletions e2e-test-server/package-lock.json

Large diffs are not rendered by default.

3,263 changes: 1,597 additions & 1,666 deletions package-lock.json

Large diffs are not rendered by default.

3,540 changes: 2,230 additions & 1,310 deletions packages/opentelemetry-cloud-monitoring-exporter/package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions packages/opentelemetry-cloud-monitoring-exporter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@
"@opentelemetry/core": "0.25.0",
"@opentelemetry/sdk-metrics-base": "0.25.0",
"@opentelemetry/resources": "0.25.0",
"@types/mocha": "9.0.0",
"@types/mocha": "8.2.3",
"@types/nock": "11.1.0",
"@types/node": "14.17.19",
"@types/sinon": "10.0.4",
"codecov": "3.8.3",
"gts": "3.1.0",
"mocha": "9.1.2",
"mocha": "8.4.0",
"nock": "13.1.3",
"nyc": "15.1.0",
"rimraf": "3.0.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,8 @@ export class MetricExporter implements IMetricExporter {
static readonly CUSTOM_OPENTELEMETRY_DOMAIN: string =
'custom.googleapis.com/opentelemetry';

private registeredMetricDescriptors: Map<
string,
OTMetricDescriptor
> = new Map();
private registeredMetricDescriptors: Map<string, OTMetricDescriptor> =
new Map();

private static readonly _monitoring = google.monitoring('v3');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,8 @@ describe('MetricExporter', () => {
});

assert(timeSeries.calledOnce);
const calledWithSeries1 = timeSeries.firstCall.args[0].requestBody!
.timeSeries!;
const calledWithSeries1 =
timeSeries.firstCall.args[0].requestBody!.timeSeries!;
assert.strictEqual(calledWithSeries1.length, 1);
assert.strictEqual(calledWithSeries1[0].points!.length, 1);
const interval1 = calledWithSeries1[0].points![0].interval!;
Expand All @@ -301,8 +301,8 @@ describe('MetricExporter', () => {
});

assert(timeSeries.calledTwice);
const calledWithSeries2 = timeSeries.secondCall.args[0].requestBody!
.timeSeries!;
const calledWithSeries2 =
timeSeries.secondCall.args[0].requestBody!.timeSeries!;
assert.strictEqual(calledWithSeries2.length, 1);
assert.strictEqual(calledWithSeries2[0].points!.length, 1);
const interval2 = calledWithSeries2[0].points![0].interval!;
Expand Down
Loading

0 comments on commit b305dbd

Please sign in to comment.