@@ -920,13 +920,13 @@ describe('BaseClient', () => {
920920 const options = getDefaultTestClientOptions ( { dsn : PUBLIC_DSN , beforeSend } ) ;
921921 const client = new TestClient ( options ) ;
922922 const captureExceptionSpy = jest . spyOn ( client , 'captureException' ) ;
923- const loggerWarnSpy = jest . spyOn ( logger , 'warn ' ) ;
923+ const loggerWarnSpy = jest . spyOn ( logger , 'log ' ) ;
924924
925925 client . captureEvent ( { message : 'hello' } ) ;
926926
927927 expect ( TestClient . instance ! . event ) . toBeUndefined ( ) ;
928928 expect ( captureExceptionSpy ) . not . toBeCalled ( ) ;
929- expect ( loggerWarnSpy ) . toBeCalledWith ( new SentryError ( '`beforeSend` returned `null`, will not send event.' ) ) ;
929+ expect ( loggerWarnSpy ) . toBeCalledWith ( '`beforeSend` returned `null`, will not send event.' ) ;
930930 } ) ;
931931
932932 test ( 'calls beforeSend and log info about invalid return value' , ( ) => {
@@ -1065,15 +1065,15 @@ describe('BaseClient', () => {
10651065
10661066 const client = new TestClient ( getDefaultTestClientOptions ( { dsn : PUBLIC_DSN } ) ) ;
10671067 const captureExceptionSpy = jest . spyOn ( client , 'captureException' ) ;
1068- const loggerWarnSpy = jest . spyOn ( logger , 'warn ' ) ;
1068+ const loggerLogSpy = jest . spyOn ( logger , 'log ' ) ;
10691069 const scope = new Scope ( ) ;
10701070 scope . addEventProcessor ( ( ) => null ) ;
10711071
10721072 client . captureEvent ( { message : 'hello' } , { } , scope ) ;
10731073
10741074 expect ( TestClient . instance ! . event ) . toBeUndefined ( ) ;
10751075 expect ( captureExceptionSpy ) . not . toBeCalled ( ) ;
1076- expect ( loggerWarnSpy ) . toBeCalledWith ( new SentryError ( 'An event processor returned null, will not send event.' ) ) ;
1076+ expect ( loggerLogSpy ) . toBeCalledWith ( 'An event processor returned null, will not send event.' ) ;
10771077 } ) ;
10781078
10791079 test ( 'eventProcessor records dropped events' , ( ) => {
0 commit comments