-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c1816c2
commit 9778807
Showing
3 changed files
with
30 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,7 @@ Describe "Format-SpectreTable" { | |
$testData = Get-ChildItem "$PSScriptRoot" | ||
$verification = $testdata | Format-Table | Get-TableHeader | ||
$testResult = Format-SpectreTable -Data $testData -Border $testBorder -Color $testColor | ||
$rows = $testResult -split "\r?\n" | Select-Object -Skip 1 -SkipLast 2 | ||
$rows = $testResult -split "\r?\n" | Select-Object -Skip 1 | Select-Object -SkipLast 2 | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
ShaunLawrie
Author
Owner
|
||
$header = $rows[0] | ||
$properties = $header -split '\|' | StripAnsi | ForEach-Object { | ||
if (-Not [String]::IsNullOrWhiteSpace($_)) { | ||
|
@@ -58,7 +58,7 @@ Describe "Format-SpectreTable" { | |
It "Should be able to use calculated properties" { | ||
$Data = Get-Process -Id $pid | ||
$Format = $data | Format-SpectreTable ProcessName, @{Label="TotalRunningTime"; Expression={(Get-Date) - $_.StartTime}} -Border Markdown | ||
$obj = $Format -split "\r?\n" | Select-Object -Skip 1 -SkipLast 2 | ||
$obj = $Format -split "\r?\n" | Select-Object -Skip 1 | Select-Object -SkipLast 2 | ||
$deconstructed = $obj -split '\|' | StripAnsi | ForEach-Object { | ||
if (-Not [String]::IsNullOrEmpty($_)) { | ||
$_.Trim() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
just an fyi, the github runners are upgraded to 7.4 so it supports combining these parameters now.