fix creation of profile
This commit is contained in:
parent
2d8a15af28
commit
0c1274011c
|
@ -250,8 +250,8 @@ Describe "ConsoleHost unit tests" -tags "Feature" {
|
|||
if (Test-Path $profile) {
|
||||
Remove-Item -Path "$profile.backup" -ErrorAction SilentlyContinue
|
||||
Rename-Item -Path $profile -NewName "$profile.backup"
|
||||
Set-Content -Path $profile -Value "'profile-loaded'" -Force
|
||||
}
|
||||
Set-Content -Path $profile -Value "'profile-loaded'" -Force
|
||||
}
|
||||
|
||||
AfterAll {
|
||||
|
@ -267,6 +267,7 @@ Describe "ConsoleHost unit tests" -tags "Feature" {
|
|||
){
|
||||
param($switch)
|
||||
|
||||
Get-Content $profile -Raw | Should -Not -BeNullOrEmpty
|
||||
& pwsh $switch -c exit | Should -BeExactly "profile-loaded"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue