Skip to content

Commit

Permalink
fix test issue since changing name of switch
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveL-MSFT committed Dec 18, 2018
1 parent efe8124 commit 38c5f8e
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -792,10 +792,10 @@ A Name B
}
}

It "-RepeatHeader should output the header at every screen full" -Skip:([Console]::BufferHeight -eq 0) {
It "-RepeatHeader should output the header at every screen full" -Skip:([Console]::WindowHeight -eq 0) {
$numObjects = 250
$out = 1..$numObjects | ForEach-Object { @{foo=$_} } | Format-Table -RepeatHeaderPerScreen | Out-String
$out = 1..$numObjects | ForEach-Object { @{foo=$_} } | Format-Table -RepeatHeader | Out-String
$lines = $out.Split([System.Environment]::NewLine)
($lines | Select-String "Name\s*Value").Count | Should -Be ([int]($numObjects / [Console]::BufferHeight) + 1)
($lines | Select-String "Name\s*Value").Count | Should -Be ([int]($numObjects / [Console]::WindowHeight) + 1)
}
}

0 comments on commit 38c5f8e

Please sign in to comment.