Skip to content

Commit

Permalink
fix 'Test-FolderExists.tests.ps1`
Browse files Browse the repository at this point in the history
  • Loading branch information
LarryWisherMan committed Sep 11, 2024
1 parent 64ef924 commit ec96265
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions source/Private/Test-FolderExists.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
function Test-FolderExists
{
[outputType([bool])]
[cmdletbinding()]
param (
[string]$ProfilePath,
[string]$ComputerName = $env:COMPUTERNAME
Expand Down
4 changes: 2 additions & 2 deletions tests/Unit/Private/Test-FolderExists.tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ Describe "Test-FolderExists" -Tag "Private" {
$computerName = $env:COMPUTERNAME

# Act and Assert
$result = Test-FolderExists -ProfilePath $profilePath -ComputerName $computerName
$result = Test-FolderExists -ProfilePath $profilePath -ComputerName $computerName -ErrorAction Continue
$result | Should -BeFalse

Assert-MockCalled Get-DirectoryPath -Exactly 1
Expand All @@ -214,7 +214,7 @@ Describe "Test-FolderExists" -Tag "Private" {
$computerName = $env:COMPUTERNAME

# Act and Assert
$result = Test-FolderExists -ProfilePath $profilePath -ComputerName $computerName
$result = Test-FolderExists -ProfilePath $profilePath -ComputerName $computerName -ErrorAction Continue
$result | Should -BeFalse

Assert-MockCalled Get-DirectoryPath -Exactly 1
Expand Down

0 comments on commit ec96265

Please sign in to comment.