File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ Describe 'PSScriptModule Integration Tests' -Tag 'Integration' {
5151 $exportedCommands = $module.ExportedCommands.Keys
5252
5353 # Discover public functions from source
54- $publicFunctionsPath = Resolve-Path - Path (Join-Path - Path $PSScriptRoot - ChildPath ' ../../src/Public' )
54+ $publicFunctionsPath = Resolve-Path - Path (Join-Path - Path $PSScriptRoot - ChildPath ' ../../src/Public/ ' )
5555 $publicFunctionFiles = Get-ChildItem - Path $publicFunctionsPath - Include ' *.ps1' - Exclude ' *.Tests.ps1' - Recurse |
5656 Select-Object - ExpandProperty BaseName
5757 }
@@ -60,6 +60,10 @@ Describe 'PSScriptModule Integration Tests' -Tag 'Integration' {
6060 $exportedCommands.Count | Should - BeGreaterThan 0
6161 }
6262
63+ It ' Public function files' {
64+ $publicFunctionFiles | Should - Be 1
65+ }
66+
6367 It ' Should discover public functions from src/Public' {
6468 $publicFunctionFiles.Count | Should - BeGreaterThan 0 - Because ' src/Public should contain at least one public function'
6569 }
You can’t perform that action at this time.
0 commit comments