Skip to content

Commit 212c19d

Browse files
Update path test to use Should -Exist
1 parent 838afb9 commit 212c19d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/powershell/Modules/Microsoft.PowerShell.Utility/Get-FileHash.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ Describe "Get-FileHash" -Tags "CI" {
8787
Copy-Item -Path $testdocument -Destination $testDocumentCopy
8888

8989
$newPath = Get-FileHash -Path $testDocumentCopy | Rename-Item -NewName {$_.Hash} -PassThru
90-
Test-Path -Path $newPath.FullName | Should -BeTrue
90+
$newPath.FullName | Should -Exist
9191

9292
Remove-Item -Path $testDocumentCopy -Force
9393
}

0 commit comments

Comments
 (0)