File tree 2 files changed +6
-2
lines changed
packages/node/test/transports
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 {
28
28
}
29
29
30
30
function 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' ) ;
32
34
expect ( options . port ) . toEqual ( '8989' ) ;
33
35
expect ( options . path ) . toEqual ( transportPath ) ;
34
36
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 {
34
34
}
35
35
36
36
function 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' ) ;
38
40
expect ( options . port ) . toEqual ( '8989' ) ;
39
41
expect ( options . path ) . toEqual ( transportPath ) ;
40
42
expect ( options . hostname ) . toEqual ( 'sentry.io' ) ;
You can’t perform that action at this time.
0 commit comments