mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Fix UNC path completion regression (#20419)
This commit is contained in:
@@ -1276,6 +1276,11 @@ class InheritedClassTest : System.Attribute
|
||||
}
|
||||
}
|
||||
|
||||
It 'Should correct slashes in UNC path completion' -Skip:(!$IsWindows) {
|
||||
$Res = TabExpansion2 -inputScript 'Get-ChildItem //localhost/c$/Windows'
|
||||
$Res.CompletionMatches[0].CompletionText | Should -Be "'\\localhost\c$\Windows'"
|
||||
}
|
||||
|
||||
It 'Should keep custom drive names when completing file paths' {
|
||||
$TempDriveName = "asdf"
|
||||
$null = New-PSDrive -Name $TempDriveName -PSProvider FileSystem -Root $HOME
|
||||
|
||||
Reference in New Issue
Block a user