update should syntax with -throw parameter

This commit is contained in:
OCram85 2018-03-12 16:00:21 +01:00
parent 5910c44356
commit a440a61b10

View File

@ -19,7 +19,7 @@ Else {
Describe "Set-ChallengeFile" { Describe "Set-ChallengeFile" {
Context "Tests with custom path" { Context "Tests with custom path" {
It "Working dir and path not exist" { 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" { It "No parameter and non file should return true" {
if (Test-Path -Path ("{0}\PSCredentialStore\Challenge.bin" -f $env:ProgramData)) { if (Test-Path -Path ("{0}\PSCredentialStore\Challenge.bin" -f $env:ProgramData)) {