Merge pull request #22 from wildcard78/TestingBranch-MM

Update Get-ZertoAlert.Tests.ps1
This commit is contained in:
Wes Carroll
2019-04-02 09:05:30 -04:00
committed by GitHub
+11 -1
View File
@@ -16,4 +16,14 @@ Describe $file.BaseName -Tag 'Unit' {
$null = [System.Management.Automation.PSParser]::Tokenize($contents, [ref]$errors)
$errors | Should -HaveCount 0
}
}
Context "$($file.BaseName)::Parameter Unit Tests" {
it "Has a mandatory string parameter for the Alert identifier" {
Get-Command $file.BaseName | Should -HaveParameter alertId -Mandatory -Type String[]
}
}
}