From 1dda10676243091c63238bffd56af1e894939d28 Mon Sep 17 00:00:00 2001 From: Tatsuki Sugiura Date: Sun, 7 May 2023 19:36:15 +0900 Subject: [PATCH] chore: fix typo https://github.com/open-telemetry/opentelemetry-js/pull/3542#discussion_r1127632098 --- .../test/browser/CollectorTraceExporter.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/experimental/packages/exporter-trace-otlp-http/test/browser/CollectorTraceExporter.test.ts b/experimental/packages/exporter-trace-otlp-http/test/browser/CollectorTraceExporter.test.ts index 96ac56397c..88cee54e75 100644 --- a/experimental/packages/exporter-trace-otlp-http/test/browser/CollectorTraceExporter.test.ts +++ b/experimental/packages/exporter-trace-otlp-http/test/browser/CollectorTraceExporter.test.ts @@ -586,7 +586,7 @@ describe('OTLPTraceExporter - web', () => { fetchMock.restore(); }); - const assertRequesetHeaders = ( + const assertRequestHeaders = ( call: MockCall | undefined, expected: Record ) => { @@ -603,7 +603,7 @@ describe('OTLPTraceExporter - web', () => { collectorTraceExporter.export(spans, () => { try { assert.ok(fetchMock.called('*')); - assertRequesetHeaders(fetchMock.lastCall('*'), customHeaders); + assertRequestHeaders(fetchMock.lastCall('*'), customHeaders); assert.strictEqual(stubBeacon.callCount, 0); assert.strictEqual(stubOpen.callCount, 0); assert.strictEqual(stubXhr.callCount, 0);