From a440a61b10e2816fda814bee15daadf26da3f5a3 Mon Sep 17 00:00:00 2001 From: OCram85 Date: Mon, 12 Mar 2018 16:00:21 +0100 Subject: [PATCH] update should syntax with -throw parameter --- tests/ChallengeFile/01_Set-ChallengeFile.Tests.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ChallengeFile/01_Set-ChallengeFile.Tests.ps1 b/tests/ChallengeFile/01_Set-ChallengeFile.Tests.ps1 index 762df84..71f7c9c 100644 --- a/tests/ChallengeFile/01_Set-ChallengeFile.Tests.ps1 +++ b/tests/ChallengeFile/01_Set-ChallengeFile.Tests.ps1 @@ -19,7 +19,7 @@ Else { Describe "Set-ChallengeFile" { Context "Tests with custom path" { It "Working dir and path not exist" { - Set-ChallengeFile -Path 'C:\CredentialStore\Challenge.bin' | Should -Not -Throw + {Set-ChallengeFile -Path 'C:\PSCredentialStore\Challenge.bin'} | Should -Not -Throw } It "No parameter and non file should return true" { if (Test-Path -Path ("{0}\PSCredentialStore\Challenge.bin" -f $env:ProgramData)) {