mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Use correct casing for cmdlet name and cmdlet parameter name in *.ps1 files (#12584)
This commit is contained in:
@@ -4,14 +4,14 @@
|
||||
Describe "Verify PowerShell Runs" {
|
||||
BeforeAll{
|
||||
$options = (Get-PSOptions)
|
||||
$path = split-path -path $options.Output
|
||||
$path = Split-Path -Path $options.Output
|
||||
Write-Verbose "Path: '$path'" -Verbose
|
||||
$rootPath = split-Path -path $path
|
||||
$rootPath = Split-Path -Path $path
|
||||
$mount = 'C:\powershell'
|
||||
$container = 'mcr.microsoft.com/powershell:nanoserver-1803'
|
||||
}
|
||||
|
||||
it "Verify Version " {
|
||||
It "Verify Version " {
|
||||
$version = docker run --rm -v "${rootPath}:${mount}" ${container} "${mount}\publish\pwsh" -NoLogo -NoProfile -Command '$PSVersionTable.PSVersion.ToString()'
|
||||
$version | Should -Match '^7\.'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user