Skip to content

Commit 6ec5b3c

Browse files
committed
also test against current value
1 parent b5b8dd0 commit 6ec5b3c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/utils/test/misc.test.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,6 @@ describe('addExceptionMechanism', () => {
248248
addExceptionMechanism(event, newMechanism);
249249

250250
// the new `handled` value took precedence
251-
expect(event.exception.values[0].mechanism.handled).toEqual(true);
252-
expect(event.exception.values[0].mechanism.synthetic).toEqual(true);
251+
expect(event.exception.values[0].mechanism).toEqual({ type: 'instrument', handled: true, synthetic: true });
253252
});
254253
});

0 commit comments

Comments
 (0)