Skip to content

Commit ab78746

Browse files
committed
code style changes
1 parent ce4bf71 commit ab78746

File tree

3 files changed

+6
-8
lines changed
  • dev-packages/browser-integration-tests/suites/tracing
  • packages/core/test/lib/tracing

3 files changed

+6
-8
lines changed

dev-packages/browser-integration-tests/suites/tracing/linking-addLink/test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ sentryTest('should link spans with addLink() in trace context', async ({ getLoca
99
}
1010

1111
const url = await getLocalTestUrl({ testDir: __dirname });
12-
const events = await getMultipleSentryEnvelopeRequests<Event>(page, 3, { url });
13-
const [rootSpan1, rootSpan2] = events;
12+
const [rootSpan1, rootSpan2] = await getMultipleSentryEnvelopeRequests<Event>(page, 3, { url });
1413

1514
const rootSpan1_traceId = rootSpan1.contexts?.trace?.trace_id as string;
1615
const rootSpan1_spanId = rootSpan1.contexts?.trace?.span_id as string;

dev-packages/browser-integration-tests/suites/tracing/linking-addLinks/test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ sentryTest('should link spans with addLinks() in trace context', async ({ getLoc
99
}
1010

1111
const url = await getLocalTestUrl({ testDir: __dirname });
12-
const events = await getMultipleSentryEnvelopeRequests<Event>(page, 3, { url });
13-
const [rootSpan1, rootSpan2, rootSpan3] = events;
12+
const [rootSpan1, rootSpan2, rootSpan3] = await getMultipleSentryEnvelopeRequests<Event>(page, 3, { url });
1413

1514
const rootSpan1_traceId = rootSpan1.contexts?.trace?.trace_id as string;
1615
const rootSpan1_spanId = rootSpan1.contexts?.trace?.span_id as string;

packages/core/test/lib/tracing/trace.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -402,8 +402,8 @@ describe('startSpan', () => {
402402
it('allows to pass span links', () => {
403403
const rawSpan1 = startInactiveSpan({ name: 'pageload_span' });
404404

405-
// @ts-expect-error links exists on span
406-
expect(rawSpan1?.links).toEqual(undefined);
405+
// @ts-expect-error _links exists on span
406+
expect(rawSpan1?._links).toEqual(undefined);
407407

408408
const span1JSON = spanToJSON(rawSpan1);
409409

@@ -937,8 +937,8 @@ describe('startSpanManual', () => {
937937
it('allows to pass span links', () => {
938938
const rawSpan1 = startInactiveSpan({ name: 'pageload_span' });
939939

940-
// @ts-expect-error links exists on span
941-
expect(rawSpan1?.links).toEqual(undefined);
940+
// @ts-expect-error _links exists on span
941+
expect(rawSpan1?._links).toEqual(undefined);
942942

943943
const span1JSON = spanToJSON(rawSpan1);
944944

0 commit comments

Comments
 (0)