mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
help function shouldn't use pager for AliasHelpInfo (#8552)
This commit is contained in:
committed by
Aditya Patwardhan
parent
c188666305
commit
d51b5fdc30
@@ -339,7 +339,10 @@ Describe "Get-Help should find pattern help files" -Tags "CI" {
|
||||
}
|
||||
|
||||
Describe "Get-Help should find pattern alias" -Tags "CI" {
|
||||
# Remove test alias
|
||||
BeforeAll {
|
||||
Set-Alias -Name testAlias1 -Value Where-Object
|
||||
}
|
||||
|
||||
AfterAll {
|
||||
Remove-Item alias:\testAlias1 -ErrorAction SilentlyContinue
|
||||
}
|
||||
@@ -355,11 +358,16 @@ Describe "Get-Help should find pattern alias" -Tags "CI" {
|
||||
}
|
||||
|
||||
It "Get-Help should find alias with * pattern" {
|
||||
Set-Alias -Name testAlias1 -Value Where-Object
|
||||
$help = Get-Help testAlias1*
|
||||
$help.Category | Should -BeExactly "Alias"
|
||||
$help.Synopsis | Should -BeExactly "Where-Object"
|
||||
}
|
||||
|
||||
It "Help alias should be same as Get-Help alias" {
|
||||
$help1 = Get-Help testAlias*
|
||||
$help2 = help testAlias*
|
||||
Compare-Object $help1 $help2 | Should -BeNullOrEmpty
|
||||
}
|
||||
}
|
||||
|
||||
Describe "help function uses full view by default" -Tags "CI" {
|
||||
|
||||
Reference in New Issue
Block a user