@@ -920,13 +920,13 @@ describe('BaseClient', () => {
920
920
const options = getDefaultTestClientOptions ( { dsn : PUBLIC_DSN , beforeSend } ) ;
921
921
const client = new TestClient ( options ) ;
922
922
const captureExceptionSpy = jest . spyOn ( client , 'captureException' ) ;
923
- const loggerWarnSpy = jest . spyOn ( logger , 'warn ' ) ;
923
+ const loggerWarnSpy = jest . spyOn ( logger , 'log ' ) ;
924
924
925
925
client . captureEvent ( { message : 'hello' } ) ;
926
926
927
927
expect ( TestClient . instance ! . event ) . toBeUndefined ( ) ;
928
928
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.' ) ;
930
930
} ) ;
931
931
932
932
test ( 'calls beforeSend and log info about invalid return value' , ( ) => {
@@ -1065,15 +1065,15 @@ describe('BaseClient', () => {
1065
1065
1066
1066
const client = new TestClient ( getDefaultTestClientOptions ( { dsn : PUBLIC_DSN } ) ) ;
1067
1067
const captureExceptionSpy = jest . spyOn ( client , 'captureException' ) ;
1068
- const loggerWarnSpy = jest . spyOn ( logger , 'warn ' ) ;
1068
+ const loggerLogSpy = jest . spyOn ( logger , 'log ' ) ;
1069
1069
const scope = new Scope ( ) ;
1070
1070
scope . addEventProcessor ( ( ) => null ) ;
1071
1071
1072
1072
client . captureEvent ( { message : 'hello' } , { } , scope ) ;
1073
1073
1074
1074
expect ( TestClient . instance ! . event ) . toBeUndefined ( ) ;
1075
1075
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.' ) ;
1077
1077
} ) ;
1078
1078
1079
1079
test ( 'eventProcessor records dropped events' , ( ) => {
0 commit comments