mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 04:36:39 +00:00
Changing childitem to cope with regex
This commit is contained in:
1 parent
7c6a0ce2f1
commit
90defe681d
1 file changed
+2
-2
@@ -112,7 +112,7 @@ Describe "New-Item" {
|
||||
Test-Path $FullyQualifiedLink | Should Be $true
|
||||
|
||||
$fileInfo = Get-ChildItem $FullyQualifiedLink
|
||||
$fileInfo.Target | Should Match $FullyQualifiedFile
|
||||
$fileInfo.Target | Should Match ([regex]::Escape($FullyQualifiedFile))
|
||||
$fileInfo.LinkType | Should Be "SymbolicLink"
|
||||
}
|
||||
|
||||
@@ -135,7 +135,7 @@ Describe "New-Item" {
|
||||
Test-Path $FullyQualifiedLink | Should Be $true
|
||||
|
||||
$fileInfo = Get-ChildItem $FullyQualifiedLink
|
||||
$fileInfo.Target | Should Match $FullyQualifiedFolder
|
||||
$fileInfo.Target | Should Match ([regex]::Escape($FullyQualifiedFolder))
|
||||
$fileInfo.LinkType | Should Be "SymbolicLink"
|
||||
|
||||
# Remove the link explicitly to avoid broken symlink issue
|
||||
|
||||
Reference in new issue
Block a user