mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Make sure that the width of the header is at least the size of the label (or propertyname) (#6487)
This commit is contained in:
committed by
Aditya Patwardhan
parent
9a061457f4
commit
a6479f8181
+1
-1
@@ -512,7 +512,7 @@ namespace System.Management.Automation.Runspaces
|
||||
.AddHeader(width: 6)
|
||||
.AddHeader(width: 6)
|
||||
.AddHeader(width: 6)
|
||||
.AddHeader(width: 9)
|
||||
.AddHeader(width: 15)
|
||||
.AddHeader(width: 11)
|
||||
.StartRowDefinition()
|
||||
.AddPropertyColumn("Major")
|
||||
|
||||
@@ -245,4 +245,10 @@ Describe "SemanticVersion api tests" -Tags 'CI' {
|
||||
$des.ToString() | Should -Be $expectedResult
|
||||
}
|
||||
}
|
||||
|
||||
Context "Formatting" {
|
||||
It "Should not throw when default format-table is used" {
|
||||
{ $PSVersionTable.PSVersion | Format-Table | Out-String } | Should -Not -Throw
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user