Skip to content

Commit 0acf67a

Browse files
committed
adjust unit test
1 parent 8d21720 commit 0acf67a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/core/test/lib/client.test.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1676,12 +1676,17 @@ describe('Client', () => {
16761676

16771677
client.captureEvent({ message: 'hello' }, {}, scope);
16781678

1679-
expect(TestClient.instance!.event!.exception!.values![0]).toStrictEqual({ type: 'Error', value: 'sorry' });
1679+
expect(TestClient.instance!.event!.exception!.values![0]).toStrictEqual({
1680+
type: 'Error',
1681+
value: 'sorry',
1682+
mechanism: { type: 'internal', handled: false },
1683+
});
16801684
expect(captureExceptionSpy).toBeCalledWith(exception, {
16811685
data: {
16821686
__sentry__: true,
16831687
},
16841688
originalException: exception,
1689+
mechanism: { type: 'internal', handled: false },
16851690
});
16861691
expect(loggerWarnSpy).toBeCalledWith(
16871692
`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${exception}`,

0 commit comments

Comments
 (0)