report # of tests correctly

This commit is contained in:
dfinke
2018-07-04 08:54:18 -04:00
parent d24890cb97
commit 886d185e6f

View File

@@ -7,5 +7,5 @@ if ((Get-Module -ListAvailable pester) -eq $null) {
$result = Invoke-Pester -Script $PSScriptRoot\__tests__ -Verbose -PassThru
if ($result.FailedCount -gt 0) {
throw "$($FailedCount) tests failed."
throw "$($result.FailedCount) tests failed."
}