Skip to content

Commit 84860b4

Browse files
committed
fix tests -> undefined instead of []
1 parent 5a74d31 commit 84860b4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ describe('startSpan', () => {
404404
const rawSpan1 = startInactiveSpan({ name: 'pageload_span' });
405405

406406
// @ts-expect-error links exists on span
407-
expect(rawSpan1?.links).toEqual([]);
407+
expect(rawSpan1?.links).toEqual(undefined);
408408

409409
const span1JSON = spanToJSON(rawSpan1);
410410

@@ -939,7 +939,7 @@ describe('startSpanManual', () => {
939939
const rawSpan1 = startInactiveSpan({ name: 'pageload_span' });
940940

941941
// @ts-expect-error links exists on span
942-
expect(rawSpan1?.links).toEqual([]);
942+
expect(rawSpan1?.links).toEqual(undefined);
943943

944944
const span1JSON = spanToJSON(rawSpan1);
945945

@@ -1393,7 +1393,7 @@ describe('startInactiveSpan', () => {
13931393
origin: 'manual',
13941394
},
13951395
});
1396-
expect(innerTransaction?.spans).toEqual([]);
1396+
expect(innerTransaction?.spans).toEqual(undefined);
13971397
expect(innerTransaction?.transaction).toEqual('inner transaction');
13981398
expect(innerTransaction?.sdkProcessingMetadata).toEqual({
13991399
dynamicSamplingContext: {

0 commit comments

Comments
 (0)