Update Get-ZertoAlert.Tests.ps1

Added alertId check
This commit is contained in:
wildcard78
2019-04-02 09:01:40 -04:00
parent d0a75153ad
commit 071053cf92
+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[]
}
}
}