diff --git a/tests/Store/01_Get-CredentialStore.Tests.ps1 b/tests/Store/01_Get-CredentialStore.Tests.ps1 index 13e8aeb..e2d6b29 100644 --- a/tests/Store/01_Get-CredentialStore.Tests.ps1 +++ b/tests/Store/01_Get-CredentialStore.Tests.ps1 @@ -34,7 +34,7 @@ Describe "Get-CredentialStore" { {Get-CredentialStore -Path $TestCredentialStore} | Should Not Throw } It "Test3: Not existing path should return false" { - Get-CredentialStore -Path 'C:\foobar\CredentialStore.json' -Shared | Should -Be $false + { Get-CredentialStore -Path 'C:\foobar\CredentialStore.json' -Shared }| Should -Throw "Could not find the CredentialStore." } } }