File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
packages/node/test/manual Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ global.console.error = () => null;
11
11
function assertTags ( actual , expected ) {
12
12
if ( JSON . stringify ( actual ) !== JSON . stringify ( expected ) ) {
13
13
console . log ( colorize ( 'FAILED: Scope contains incorrect tags\n' , 'red' ) ) ;
14
+ console . log ( colorize ( `Got: ${ JSON . stringify ( actual ) } \n` , 'red' ) ) ;
15
+ console . log ( colorize ( `Expected: ${ JSON . stringify ( expected ) } \n` , 'red' ) ) ;
14
16
process . exit ( 1 ) ;
15
17
}
16
18
}
Original file line number Diff line number Diff line change @@ -26,12 +26,16 @@ Sentry.init({
26
26
if ( event . message === 'inside' ) {
27
27
if ( event . tags . a !== 'x' && event . tags . b !== 'c' ) {
28
28
console . log ( colorize ( 'FAILED: Scope contains incorrect tags\n' , 'red' ) ) ;
29
+ console . log ( colorize ( `Got: ${ JSON . stringify ( event . tags ) } \n` , 'red' ) ) ;
30
+ console . log ( colorize ( `Expected: Object including { a: 'x', b: 'c' }\n` , 'red' ) ) ;
29
31
process . exit ( 1 ) ;
30
32
}
31
33
}
32
34
if ( event . message === 'outside' ) {
33
35
if ( event . tags . a !== 'b' ) {
34
36
console . log ( colorize ( 'FAILED: Scope contains incorrect tags\n' , 'red' ) ) ;
37
+ console . log ( colorize ( `Got: ${ JSON . stringify ( event . tags ) } \n` , 'red' ) ) ;
38
+ console . log ( colorize ( `Expected: Object including { a: 'b' }\n` , 'red' ) ) ;
35
39
process . exit ( 1 ) ;
36
40
}
37
41
}
You can’t perform that action at this time.
0 commit comments