Skip to content

Commit

Permalink
Remove dead code for Incomplete. (#2614)
Browse files Browse the repository at this point in the history
The block here appears to be unreachable code.
Throw on invalid/unexpected test result types.
  • Loading branch information
davidmatson authored Jan 30, 2025
1 parent 665e489 commit 41acb1b
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/functions/Output.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -714,13 +714,7 @@ function Get-WriteScreenPlugin ($Verbosity) {
}

default {
if ($PesterPreference.Output.Verbosity.Value -in 'Detailed', 'Diagnostic') {
# TODO: Add actual Incomplete status as default rather than checking for null time.
if ($null -eq $_test.Duration) {
Write-PesterHostMessage -ForegroundColor $ReportTheme.Incomplete "$margin[?] $out" -NoNewLine
Write-PesterHostMessage -ForegroundColor $ReportTheme.IncompleteTime " $humanTime"
}
}
throw "Invalid test result '$result'"
}
}
}
Expand Down

0 comments on commit 41acb1b

Please sign in to comment.