Skip to content

Commit fa94622

Browse files
not sure hwy it fails for that variable
1 parent b04b705 commit fa94622

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

source/functions/Convert-DbcResult.ps1

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ Initial - RMS 28/12/2019
3535
#>
3636
function Convert-DbcResult {
3737
[OutputType([System.Data.DataTable])]
38+
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSReviewUnusedParameter', '', Justification = 'Because I dont know why it doesnt know about Label')]
3839
Param(
3940
# The pester results object
4041
[Parameter(Mandatory = $true, ValueFromPipeline = $true)]
@@ -91,11 +92,6 @@ function Convert-DbcResult {
9192
$Database = $null
9293
}
9394
$Date = Get-Date
94-
if ($Label) {
95-
96-
} else {
97-
$Label = 'NoLabel'
98-
}
9995
# Create a new Row
10096
$row = $table.NewRow()
10197
# Add values to new row
@@ -117,7 +113,7 @@ function Convert-DbcResult {
117113
$Results.Tests.Where{ $Psitem.Result -ne 'NotRun' }.ForEach{
118114
$TestResult = $Psitem
119115
switch ($TestResult.Result) {
120-
'skipped' {
116+
'skipped' {
121117
$PathSplit = $TestResult.ExpandedPath.split('.')
122118
$Describe = $PathSplit[0]
123119
$Context = $PathSplit[1]

0 commit comments

Comments
 (0)