Skip to content

Commit

Permalink
fix: tests for private function exports
Browse files Browse the repository at this point in the history
  • Loading branch information
scrthq committed Jan 11, 2024
1 parent d70a279 commit 727a47b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tests/1. Module Tests/PSGSuite.Module.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Describe "Module tests: $($env:BHProjectName)" -Tag 'Module' {
$testCase = Get-ChildItem "$decompiledModulePath\Private" -Recurse -Include *.ps1 | Foreach-Object {@{item = $_.BaseName}}
It "Should throw when checking for '<item>' in the module commands" -TestCases $testCase {
param($item)
{Get-Command -Name $item -Module $env:BHProjectName -ErrorAction Stop} | Should -Throw "The term '$item' is not recognized as the name of a cmdlet, function, script file, or operable program."
{Get-Command -Name $item -Module $env:BHProjectName -ErrorAction Stop} | Should -Throw
}
}
Context "Confirm all aliases are created" {
Expand Down

0 comments on commit 727a47b

Please sign in to comment.