mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
fix creation of profile
This commit is contained in:
1 parent
2d8a15af28
commit
0c1274011c
1 file changed
+2
-1
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user