Skip to content

Commit d6509d7

Browse files
committed
Update Pester tests
1 parent b4b61aa commit d6509d7

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Tests/Unit/New-AsBuiltReport.Tests.ps1

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,6 @@ Describe 'New-AsBuiltReport Unit Tests' {
2020
($TargetParam.Attributes | Where-Object { $_ -is [System.Management.Automation.ParameterAttribute] }).Mandatory | Should -Contain $true
2121
}
2222

23-
It 'Should have OutputFolderPath parameter as mandatory' {
24-
$OutputParam = $Command.Parameters['OutputFolderPath']
25-
($OutputParam.Attributes | Where-Object { $_ -is [System.Management.Automation.ParameterAttribute] }).Mandatory | Should -Contain $true
26-
}
27-
2823
It 'Should have Credential parameter in Credential parameter set' {
2924
$CredentialParam = $Command.Parameters['Credential']
3025
$CredentialParam | Should -Not -BeNullOrEmpty
@@ -80,6 +75,10 @@ Describe 'New-AsBuiltReport Unit Tests' {
8075
$TargetParam.ParameterType.Name | Should -Be 'String[]'
8176
}
8277

78+
It 'Should have OutputFolderPath parameter' {
79+
$Command.Parameters.Keys | Should -Contain 'OutputFolderPath'
80+
}
81+
8382
It 'Should have Timestamp parameter' {
8483
$Command.Parameters.Keys | Should -Contain 'Timestamp'
8584
}

0 commit comments

Comments
 (0)