Skip to content

Commit

Permalink
[Test]: Update assertions in Get-ScriptCommands tests to correctly va…
Browse files Browse the repository at this point in the history
…lidate call operators
  • Loading branch information
MariusStorhaug committed Jan 30, 2025
1 parent 98a70a3 commit a731798
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/Module.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ Describe 'Scripts' {
$commands.Name | Should -Contain 'Get-Process'
$commands.Name | Should -Contain 'Import-Module'
$commands.Name | Should -Contain 'Register-ArgumentCompleter'
$commands.Name | Should -Not -Contain '.', '&'
$commands.Name | Should -Not -Contain '.'
$commands.Name | Should -Contain '&'
}
It 'Get-ScriptCommands gets the script commands with call operators' {
$path = Join-Path $PSScriptRoot 'src\Test-Function.ps1'
Expand All @@ -65,7 +66,8 @@ Describe 'Scripts' {
$commands.Name | Should -Contain 'Get-Process'
$commands.Name | Should -Contain 'Import-Module'
$commands.Name | Should -Contain 'Register-ArgumentCompleter'
$commands.Name | Should -Contain '.', '&'
$commands.Name | Should -Contain '.'
$commands.Name | Should -Contain '&'
}
}
}

0 comments on commit a731798

Please sign in to comment.