Skip to content

Commit

Permalink
Update PowerShell/JumpCloud Module/Tests/Public/Users/Remove-JCUser.T…
Browse files Browse the repository at this point in the history
…ests.ps1

Co-authored-by: Joe Workman <[email protected]>
  • Loading branch information
kmaranionjc and jworkmanjc authored Dec 17, 2024
1 parent 6eae8ef commit 60f667b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ Describe -Tag:('JCUser') "Remove-JCUser 2.16.0" {
Set-JCUser -UserID $NewUser._id -manager $ManagerUser._id
# Remove the manager and set the new manager

$RemoveUser = Remove-JCUser -UserID $ManagerUser._id -CascadeManager NULL # Remove ManagerUser and should cascade to ManagerUser2
$RemoveUser = Remove-JCUser -UserID $ManagerUser._id -CascadeManager NULL

# The manager should be removed and the new manager should be set
$RemoveUser.Results | Should -Be 'Deleted'
Expand Down

0 comments on commit 60f667b

Please sign in to comment.