Skip to content

Commit

Permalink
Merge pull request #7 from andrewrdavidson/release-1.0.6
Browse files Browse the repository at this point in the history
Fixes module function and manifest function comparison tests
  • Loading branch information
andrewrdavidson authored Dec 22, 2020
2 parents de123a6 + d02304a commit 503988e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions PSQualityCheck.Functions.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -401,8 +401,7 @@ function Get-FunctionCount {

try {
if (Test-Path -Path $ManifestFile) {
$ExportedCommands = @((Test-ModuleManifest -Path $ManifestFile).ExportedCommands)
$ExportedCommandsCount = $ExportedCommands.Count
$ExportedCommandsCount = (Test-ModuleManifest -Path $ManifestFile).ExportedCommands.Count
}
else {
throw "Manifest file doesn't exist"
Expand Down Expand Up @@ -467,7 +466,7 @@ function Get-FunctionCount {

}

return ($ExportedCommandsCount, $CommandFoundInModuleCount, $CommandInModule, $CommandFoundInManifestCount)
return ($ExportedCommandsCount, $CommandFoundInModuleCount, $CommandInModuleCount, $CommandFoundInManifestCount)

}

Expand Down

0 comments on commit 503988e

Please sign in to comment.