diff --git a/test/metrics.options.test.ts b/test/metrics.options.test.ts index b30d1dec..71ef2d8a 100644 --- a/test/metrics.options.test.ts +++ b/test/metrics.options.test.ts @@ -151,7 +151,9 @@ describe('metrics options', () => { const exporter = reader['_exporter']; assert(exporter instanceof OTLPHttpProtoMetricExporter); assert.deepStrictEqual( - exporter._delegate['_transport']['_transport']['_parameters'].headers()['X-SF-TOKEN'], + exporter._delegate['_transport']['_transport']['_parameters'].headers()[ + 'X-SF-TOKEN' + ], 'abc' ); diff --git a/test/utils.ts b/test/utils.ts index 1ecefb11..61bd0bed 100644 --- a/test/utils.ts +++ b/test/utils.ts @@ -145,7 +145,9 @@ export function exporterHeaders(exporter: any) { } if (exporter instanceof OTLPGrpcTraceExporter) { - return exporter['_delegate']['_transport']['_parameters'].metadata().toJSON(); + return exporter['_delegate']['_transport']['_parameters'] + .metadata() + .toJSON(); } if (exporter instanceof OTLPMetricExporterBase) {