Skip to content

Commit

Permalink
✅ UPDATE Get-PASAccountPassword.Tests
Browse files Browse the repository at this point in the history
Added test for expected value when string starts with a slash
  • Loading branch information
pspete committed Dec 8, 2019
1 parent 331b432 commit 2e83234
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Tests/Get-PASAccountPassword.Tests.ps1
Expand Up @@ -73,6 +73,18 @@ Describe $FunctionName {

}

It "Returns expected response" {

Mock Invoke-PASRestMethod -MockWith {
Return "\\Expected" | ConvertTo-Json
}

$result = $InputObject | Get-PASAccountPassword

$result.Password | Should -Be "\\Expected"

}

It "Returns expected Classic API response" {

Mock Invoke-PASRestMethod -MockWith {
Expand Down

0 comments on commit 2e83234

Please sign in to comment.