From c4a3403a26fa865acf2b696e74deec5a0165e353 Mon Sep 17 00:00:00 2001 From: OCram85 Date: Wed, 21 Mar 2018 12:09:05 +0100 Subject: [PATCH] fix test syntax issue with trhow statement --- tests/Item/02_New-CredentialStoreItem.Tests.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Item/02_New-CredentialStoreItem.Tests.ps1 b/tests/Item/02_New-CredentialStoreItem.Tests.ps1 index d81f646..6b711ef 100644 --- a/tests/Item/02_New-CredentialStoreItem.Tests.ps1 +++ b/tests/Item/02_New-CredentialStoreItem.Tests.ps1 @@ -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" } }