mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Set StrictMode version 3.0 (#11563)
This commit is contained in:
@@ -59,7 +59,7 @@ Describe "Validate that the Help function can Run in strict mode" -Tags @('CI')
|
||||
|
||||
$help = & {
|
||||
# run in nested scope to keep strict mode from affecting other tests
|
||||
Set-StrictMode -Version Latest
|
||||
Set-StrictMode -Version 3.0
|
||||
Help
|
||||
}
|
||||
# the help function renders the help content as text so just verify that there is content
|
||||
|
||||
Reference in New Issue
Block a user