mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Unify pester test syntax for the arguments of -BeOfType (#11558)
This commit is contained in:
@@ -293,7 +293,7 @@ Describe "Import-Module should be case insensitive" -Tags 'CI' {
|
||||
Set-Content -Path "$modulesPath/$modulePath/TESTMODULE.psm1" -Value "function mytest { 'hello' }"
|
||||
Import-Module testMODULE
|
||||
$m = Get-Module TESTmodule
|
||||
$m | Should -BeOfType "System.Management.Automation.PSModuleInfo"
|
||||
$m | Should -BeOfType System.Management.Automation.PSModuleInfo
|
||||
$m.Name | Should -BeIn "TESTMODULE"
|
||||
mytest | Should -BeExactly "hello"
|
||||
Remove-Module TestModule
|
||||
|
||||
Reference in New Issue
Block a user