@@ -21,7 +21,7 @@ suite('Terminal Environment Activation (cmd/powershell)', () => {
21
21
22
22
const suiteTitle = hasSpaces ? 'and there are spaces in the script file (pythonpath),' : 'and there are no spaces in the script file (pythonpath),' ;
23
23
suite ( suiteTitle , ( ) => {
24
- [ 'activate' , 'activate.sh' , 'activate.csh' , 'activate.fish' , 'activate.bat' , 'activate .ps1' ] . forEach ( scriptFileName => {
24
+ [ 'activate' , 'activate.sh' , 'activate.csh' , 'activate.fish' , 'activate.bat' , 'Activate .ps1' ] . forEach ( scriptFileName => {
25
25
suite ( `and script file is ${ scriptFileName } ` , ( ) => {
26
26
let serviceContainer : TypeMoq . IMock < IServiceContainer > ;
27
27
let fileSystem : TypeMoq . IMock < IFileSystem > ;
@@ -38,7 +38,7 @@ suite('Terminal Environment Activation (cmd/powershell)', () => {
38
38
} ) ;
39
39
40
40
getNamesAndValues < TerminalShellType > ( TerminalShellType ) . forEach ( shellType => {
41
- const isScriptFileSupported = [ 'activate.bat' , 'activate .ps1' ] . indexOf ( scriptFileName ) >= 0 ;
41
+ const isScriptFileSupported = [ 'activate.bat' , 'Activate .ps1' ] . indexOf ( scriptFileName ) >= 0 ;
42
42
const titleTitle = isScriptFileSupported
43
43
? `Ensure terminal type is supported (Shell: ${ shellType . name } )`
44
44
: `Ensure terminal type is not supported (Shell: ${ shellType . name } )` ;
@@ -141,7 +141,7 @@ suite('Terminal Environment Activation (cmd/powershell)', () => {
141
141
} ) ;
142
142
} ) ;
143
143
144
- suite ( 'and script file is activate .ps1' , ( ) => {
144
+ suite ( 'and script file is Activate .ps1' , ( ) => {
145
145
let serviceContainer : TypeMoq . IMock < IServiceContainer > ;
146
146
let fileSystem : TypeMoq . IMock < IFileSystem > ;
147
147
let platform : TypeMoq . IMock < IPlatformService > ;
@@ -163,7 +163,7 @@ suite('Terminal Environment Activation (cmd/powershell)', () => {
163
163
const bash = new CommandPromptAndPowerShell ( serviceContainer . object ) ;
164
164
165
165
platform . setup ( p => p . isWindows ) . returns ( ( ) => true ) ;
166
- const pathToScriptFile = path . join ( path . dirname ( pythonPath ) , 'activate .ps1' ) ;
166
+ const pathToScriptFile = path . join ( path . dirname ( pythonPath ) , 'Activate .ps1' ) ;
167
167
fileSystem . setup ( fs => fs . fileExists ( TypeMoq . It . isValue ( pathToScriptFile ) ) ) . returns ( ( ) => Promise . resolve ( true ) ) ;
168
168
const command = await bash . getActivationCommands ( resource , TerminalShellType . commandPrompt ) ;
169
169
@@ -174,7 +174,7 @@ suite('Terminal Environment Activation (cmd/powershell)', () => {
174
174
const bash = new CommandPromptAndPowerShell ( serviceContainer . object ) ;
175
175
176
176
platform . setup ( p => p . isWindows ) . returns ( ( ) => true ) ;
177
- const pathToScriptFile = path . join ( path . dirname ( pythonPath ) , 'activate .ps1' ) ;
177
+ const pathToScriptFile = path . join ( path . dirname ( pythonPath ) , 'Activate .ps1' ) ;
178
178
fileSystem . setup ( fs => fs . fileExists ( TypeMoq . It . isValue ( pathToScriptFile ) ) ) . returns ( ( ) => Promise . resolve ( true ) ) ;
179
179
const command = await bash . getActivationCommands ( resource , TerminalShellType . powershell ) ;
180
180
@@ -185,7 +185,7 @@ suite('Terminal Environment Activation (cmd/powershell)', () => {
185
185
const bash = new CommandPromptAndPowerShell ( serviceContainer . object ) ;
186
186
187
187
platform . setup ( p => p . isWindows ) . returns ( ( ) => true ) ;
188
- const pathToScriptFile = path . join ( path . dirname ( pythonPath ) , 'activate .ps1' ) ;
188
+ const pathToScriptFile = path . join ( path . dirname ( pythonPath ) , 'Activate .ps1' ) ;
189
189
fileSystem . setup ( fs => fs . fileExists ( TypeMoq . It . isValue ( pathToScriptFile ) ) ) . returns ( ( ) => Promise . resolve ( true ) ) ;
190
190
const command = await bash . getActivationCommands ( resource , TerminalShellType . powershellCore ) ;
191
191
0 commit comments