Skip to content

Commit

Permalink
fix optional to required and get 100% coverage as result
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaelvesavuori committed Nov 11, 2022
1 parent ed47681 commit 8953e7e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/domain/entities/MikroMetric.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ export class MikroMetric {
private static context: any;
private static metric: MetricBaseObject;

private constructor(namespace: string, serviceName: string, event?: any, context?: any) {
private constructor(namespace: string, serviceName: string, event: any, context: any) {
MikroMetric.namespace = namespace;
MikroMetric.serviceName = serviceName;
MikroMetric.event = event || {};
MikroMetric.context = context || {};
MikroMetric.event = event;
MikroMetric.context = context;
MikroMetric.metric = this.createBaseMetricObject();
}

Expand Down

0 comments on commit 8953e7e

Please sign in to comment.