fix scoping issue in test file
This commit is contained in:
parent
82da4dc20a
commit
7ab662c860
@ -79,7 +79,6 @@ Describe "New-CredentialStoreItem" {
|
|||||||
return [PSCredential]::new($UserName, $Password)
|
return [PSCredential]::new($UserName, $Password)
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
It "Test missing Credential" {
|
It "Test missing Credential" {
|
||||||
$tmpCS = 'C:\CredentialStore.json'
|
$tmpCS = 'C:\CredentialStore.json'
|
||||||
New-CredentialStoreItem -Path $tmpCs -Shared -RemoteHost 'foobar3'
|
New-CredentialStoreItem -Path $tmpCs -Shared -RemoteHost 'foobar3'
|
||||||
@ -99,3 +98,5 @@ Context "General Exception handling" {
|
|||||||
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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user