Skip to content

Commit eedaddf

Browse files
committed
fix test??
1 parent 016c33c commit eedaddf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
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)