@@ -51,15 +51,16 @@ suite('Shell Detectors', () => {
51
51
shellPathsAndIdentification . set ( '/usr/bin/xonsh' , TerminalShellType . xonsh ) ;
52
52
shellPathsAndIdentification . set ( '/usr/bin/xonshx' , TerminalShellType . other ) ;
53
53
54
- const telemetryProperties : ShellIdentificationTelemetry = {
55
- failed : true ,
56
- shellIdentificationSource : 'default' ,
57
- terminalProvided : false ,
58
- hasCustomShell : undefined ,
59
- hasShellInEnv : undefined ,
60
- } ;
54
+ let telemetryProperties : ShellIdentificationTelemetry ;
61
55
62
56
setup ( ( ) => {
57
+ telemetryProperties = {
58
+ failed : true ,
59
+ shellIdentificationSource : 'default' ,
60
+ terminalProvided : false ,
61
+ hasCustomShell : undefined ,
62
+ hasShellInEnv : undefined ,
63
+ } ;
63
64
platformService = mock ( PlatformService ) ;
64
65
workspaceService = mock ( WorkspaceService ) ;
65
66
currentProcess = mock ( CurrentProcess ) ;
@@ -122,6 +123,7 @@ suite('Shell Detectors', () => {
122
123
undefined ,
123
124
'Should be undefined when vscode.env.shell is undefined' ,
124
125
) ;
126
+ expect ( telemetryProperties . failed ) . to . equal ( false ) ;
125
127
} ) ;
126
128
test ( 'Identify shell based on VSC Settings' , async ( ) => {
127
129
const shellDetector = new SettingsShellDetector ( instance ( workspaceService ) , instance ( platformService ) ) ;
0 commit comments