@@ -1037,8 +1037,7 @@ namespace FourSlash {
1037
1037
1038
1038
const refs = this . getReferencesAtCaret ( ) ;
1039
1039
if ( refs && refs . length ) {
1040
- console . log ( refs ) ;
1041
- this . raiseError ( "Expected getReferences to fail" ) ;
1040
+ this . raiseError ( `Expected getReferences to fail, but saw references: ${ stringify ( refs ) } ` ) ;
1042
1041
}
1043
1042
}
1044
1043
@@ -1050,9 +1049,9 @@ namespace FourSlash {
1050
1049
private assertObjectsEqual < T > ( fullActual : T , fullExpected : T , msgPrefix = "" ) : void {
1051
1050
const recur = < U > ( actual : U , expected : U , path : string ) => {
1052
1051
const fail = ( msg : string ) => {
1053
- console . log ( "Expected:" , stringify ( fullExpected ) ) ;
1054
- console . log ( "Actual: " , stringify ( fullActual ) ) ;
1055
- this . raiseError ( ` ${ msgPrefix } At ${ path } : ${ msg } `) ;
1052
+ this . raiseError ( ` ${ msgPrefix } At ${ path } : ${ msg }
1053
+ Expected: ${ stringify ( fullExpected ) }
1054
+ Actual : ${ stringify ( fullActual ) } `) ;
1056
1055
} ;
1057
1056
1058
1057
if ( ( actual === undefined ) !== ( expected === undefined ) ) {
@@ -1084,9 +1083,9 @@ namespace FourSlash {
1084
1083
if ( fullActual === fullExpected ) {
1085
1084
return ;
1086
1085
}
1087
- console . log ( "Expected:" , stringify ( fullExpected ) ) ;
1088
- console . log ( "Actual: " , stringify ( fullActual ) ) ;
1089
- this . raiseError ( msgPrefix ) ;
1086
+ this . raiseError ( ` ${ msgPrefix }
1087
+ Expected: ${ stringify ( fullExpected ) }
1088
+ Actual: ${ stringify ( fullActual ) } ` ) ;
1090
1089
}
1091
1090
recur ( fullActual , fullExpected , "" ) ;
1092
1091
0 commit comments