Fix function call var

This commit is contained in:
Wes Carroll
2019-07-20 20:10:06 -04:00
parent b82912605e
commit ff54a92f92
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -7,8 +7,8 @@ Describe $global:function -Tag 'Unit', 'Source', 'Built' {
Context "$global:function::Parameter Unit Tests" {
It "has a non-mandatory string parameter for the datacenterIdentifier" {
Get-Command $file.BaseName | Should -HaveParameter datastoreIdentifier
Get-Command $file.BaseName | Should -HaveParameter datastoreIdentifier -Type String[]
Get-Command $global:function | Should -HaveParameter datastoreIdentifier
Get-Command $global:function | Should -HaveParameter datastoreIdentifier -Type String[]
}
}
+2 -2
View File
@@ -6,8 +6,8 @@ Describe $global:function -Tag 'Unit', 'Source', 'Built' {
Context "$global:function::Parameter Unit Tests" {
it "Has a non-mandatory switch parameter for the pairing Statuses" {
Get-Command $file.BaseName | Should -HaveParameter pairingstatuses
Get-Command $file.BaseName | Should -HaveParameter pairingstatuses -Type switch
Get-Command $global:function | Should -HaveParameter pairingstatuses
Get-Command $global:function | Should -HaveParameter pairingstatuses -Type switch
}
}