Fix function call var
This commit is contained in:
@@ -7,8 +7,8 @@ Describe $global:function -Tag 'Unit', 'Source', 'Built' {
|
|||||||
Context "$global:function::Parameter Unit Tests" {
|
Context "$global:function::Parameter Unit Tests" {
|
||||||
|
|
||||||
It "has a non-mandatory string parameter for the datacenterIdentifier" {
|
It "has a non-mandatory string parameter for the datacenterIdentifier" {
|
||||||
Get-Command $file.BaseName | Should -HaveParameter datastoreIdentifier
|
Get-Command $global:function | Should -HaveParameter datastoreIdentifier
|
||||||
Get-Command $file.BaseName | Should -HaveParameter datastoreIdentifier -Type String[]
|
Get-Command $global:function | Should -HaveParameter datastoreIdentifier -Type String[]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ Describe $global:function -Tag 'Unit', 'Source', 'Built' {
|
|||||||
|
|
||||||
Context "$global:function::Parameter Unit Tests" {
|
Context "$global:function::Parameter Unit Tests" {
|
||||||
it "Has a non-mandatory switch parameter for the pairing Statuses" {
|
it "Has a non-mandatory switch parameter for the pairing Statuses" {
|
||||||
Get-Command $file.BaseName | Should -HaveParameter pairingstatuses
|
Get-Command $global:function | Should -HaveParameter pairingstatuses
|
||||||
Get-Command $file.BaseName | Should -HaveParameter pairingstatuses -Type switch
|
Get-Command $global:function | Should -HaveParameter pairingstatuses -Type switch
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user