Skip to content

Commit e84c9be

Browse files
committed
fix tests
1 parent be22f7c commit e84c9be

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

packages/browser/test/tracing/browserTracingIntegration.test.ts

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,6 @@ describe('browserTracingIntegration', () => {
728728
});
729729
expect(oldIsolationScopePropCtx).toEqual({
730730
traceId: expect.stringMatching(/[a-f0-9]{32}/),
731-
propagationSpanId: expect.stringMatching(/[a-f0-9]{16}/),
732731
sampleRand: expect.any(Number),
733732
});
734733
expect(newCurrentScopePropCtx).toEqual({
@@ -763,20 +762,18 @@ describe('browserTracingIntegration', () => {
763762
});
764763

765764
const propCtxBeforeEnd = getCurrentScope().getPropagationContext();
766-
expect(propCtxBeforeEnd).toStrictEqual({
765+
expect(propCtxBeforeEnd).toEqual({
767766
sampleRand: expect.any(Number),
768767
traceId: expect.stringMatching(/[a-f0-9]{32}/),
769-
propagationSpanId: expect.stringMatching(/[a-f0-9]{16}/),
770768
});
771769

772770
navigationSpan!.end();
773771

774772
const propCtxAfterEnd = getCurrentScope().getPropagationContext();
775-
expect(propCtxAfterEnd).toStrictEqual({
773+
expect(propCtxAfterEnd).toEqual({
776774
traceId: propCtxBeforeEnd.traceId,
777775
sampled: true,
778776
sampleRand: expect.any(Number),
779-
propagationSpanId: expect.stringMatching(/[a-f0-9]{16}/),
780777
dsc: {
781778
release: undefined,
782779
org_id: undefined,
@@ -807,20 +804,18 @@ describe('browserTracingIntegration', () => {
807804
});
808805

809806
const propCtxBeforeEnd = getCurrentScope().getPropagationContext();
810-
expect(propCtxBeforeEnd).toStrictEqual({
807+
expect(propCtxBeforeEnd).toEqual({
811808
traceId: expect.stringMatching(/[a-f0-9]{32}/),
812809
sampleRand: expect.any(Number),
813-
propagationSpanId: expect.stringMatching(/[a-f0-9]{16}/),
814810
});
815811

816812
navigationSpan!.end();
817813

818814
const propCtxAfterEnd = getCurrentScope().getPropagationContext();
819-
expect(propCtxAfterEnd).toStrictEqual({
815+
expect(propCtxAfterEnd).toEqual({
820816
traceId: propCtxBeforeEnd.traceId,
821817
sampled: false,
822818
sampleRand: expect.any(Number),
823-
propagationSpanId: expect.stringMatching(/[a-f0-9]{16}/),
824819
dsc: {
825820
release: undefined,
826821
org_id: undefined,

0 commit comments

Comments
 (0)