fix test syntax issue with trhow statement

This commit is contained in:
OCram85 2018-03-21 12:09:05 +01:00
parent 811a83b4bc
commit c4a3403a26

View File

@ -95,7 +95,7 @@ Describe "New-CredentialStoreItem" {
}
It "Missing CredentialStore should throw" {
New-CredentialStoreItem -Path 'C:\missingStore.json' -RemoteHost 'notrelevant' | Should -Throw "Could not add anything"
{ New-CredentialStoreItem -Path 'C:\missingStore.json' -RemoteHost 'notrelevant' } | Should -Throw "Could not add anything"
}
}