File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
packages/node/test/transports Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,9 @@ function createTransport(options: TransportOptions): HTTPTransport {
2828}
2929
3030function assertBasicOptions ( options : any ) : void {
31- expect ( options . headers [ 'X-Sentry-Auth' ] ) . toBeTruthy ( ) ;
31+ expect ( options . headers [ 'X-Sentry-Auth' ] ) . toContain ( 'sentry_version' ) ;
32+ expect ( options . headers [ 'X-Sentry-Auth' ] ) . toContain ( 'sentry_client' ) ;
33+ expect ( options . headers [ 'X-Sentry-Auth' ] ) . toContain ( 'sentry_key' ) ;
3234 expect ( options . port ) . toEqual ( '8989' ) ;
3335 expect ( options . path ) . toEqual ( transportPath ) ;
3436 expect ( options . hostname ) . toEqual ( 'sentry.io' ) ;
Original file line number Diff line number Diff line change @@ -34,7 +34,9 @@ function createTransport(options: TransportOptions): HTTPSTransport {
3434}
3535
3636function assertBasicOptions ( options : any ) : void {
37- expect ( options . headers [ 'X-Sentry-Auth' ] ) . toBeTruthy ( ) ;
37+ expect ( options . headers [ 'X-Sentry-Auth' ] ) . toContain ( 'sentry_version' ) ;
38+ expect ( options . headers [ 'X-Sentry-Auth' ] ) . toContain ( 'sentry_client' ) ;
39+ expect ( options . headers [ 'X-Sentry-Auth' ] ) . toContain ( 'sentry_key' ) ;
3840 expect ( options . port ) . toEqual ( '8989' ) ;
3941 expect ( options . path ) . toEqual ( transportPath ) ;
4042 expect ( options . hostname ) . toEqual ( 'sentry.io' ) ;
You can’t perform that action at this time.
0 commit comments