Skip to content

Commit 0b9bfdc

Browse files
committed
fix test??
1 parent 79fdcb9 commit 0b9bfdc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/core/test/utils-hoist/object.test.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,8 @@ describe('markFunctionWrapped', () => {
444444
const wrappedFunc = jest.fn();
445445
markFunctionWrapped(wrappedFunc, originalFunc);
446446

447-
expect((wrappedFunc as WrappedFunction).__sentry_original__).toBe(originalFunc);
447+
// cannot wrap because it is frozen, but we do not error!
448+
expect((wrappedFunc as WrappedFunction).__sentry_original__).toBe(undefined);
448449

449450
wrappedFunc();
450451

0 commit comments

Comments
 (0)